Package com.authzed.api.v1
Class WriteRelationshipsRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
com.authzed.api.v1.WriteRelationshipsRequest.Builder
- All Implemented Interfaces:
WriteRelationshipsRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- WriteRelationshipsRequest
public static final class WriteRelationshipsRequest.Builder
extends com.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
implements WriteRelationshipsRequestOrBuilder
WriteRelationshipsRequest contains a list of Relationship mutations that should be applied to the service. If the optional_preconditions parameter is included, all of the specified preconditions must also be satisfied before the write will be committed. All updates will be applied transactionally, and if any preconditions fail, the entire transaction will be reverted.Protobuf type
authzed.api.v1.WriteRelationshipsRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddAllOptionalPreconditions
(Iterable<? extends Precondition> values) To be bounded by configurationaddAllUpdates
(Iterable<? extends RelationshipUpdate> values) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
addOptionalPreconditions
(int index, Precondition value) To be bounded by configurationaddOptionalPreconditions
(int index, Precondition.Builder builderForValue) To be bounded by configurationTo be bounded by configurationaddOptionalPreconditions
(Precondition.Builder builderForValue) To be bounded by configurationTo be bounded by configurationaddOptionalPreconditionsBuilder
(int index) To be bounded by configurationaddUpdates
(int index, RelationshipUpdate value) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
addUpdates
(int index, RelationshipUpdate.Builder builderForValue) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
addUpdates
(RelationshipUpdate value) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
addUpdates
(RelationshipUpdate.Builder builderForValue) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
addUpdatesBuilder
(int index) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
build()
clear()
To be bounded by configurationoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getOptionalPreconditions
(int index) To be bounded by configurationgetOptionalPreconditionsBuilder
(int index) To be bounded by configurationTo be bounded by configurationint
To be bounded by configurationTo be bounded by configurationgetOptionalPreconditionsOrBuilder
(int index) To be bounded by configurationList<? extends PreconditionOrBuilder>
To be bounded by configurationcom.google.protobuf.Struct
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.Struct.Builder
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.StructOrBuilder
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.getUpdates
(int index) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
getUpdatesBuilder
(int index) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
int
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
getUpdatesOrBuilder
(int index) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
List<? extends RelationshipUpdateOrBuilder>
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
boolean
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeOptionalTransactionMetadata
(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.removeOptionalPreconditions
(int index) To be bounded by configurationremoveUpdates
(int index) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
setOptionalPreconditions
(int index, Precondition value) To be bounded by configurationsetOptionalPreconditions
(int index, Precondition.Builder builderForValue) To be bounded by configurationsetOptionalTransactionMetadata
(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.setOptionalTransactionMetadata
(com.google.protobuf.Struct.Builder builderForValue) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction.setUpdates
(int index, RelationshipUpdate value) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
setUpdates
(int index, RelationshipUpdate.Builder builderForValue) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ...
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WriteRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
mergeFrom
public WriteRelationshipsRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<WriteRelationshipsRequest.Builder>
- Throws:
IOException
-
getUpdatesList
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
- Specified by:
getUpdatesList
in interfaceWriteRelationshipsRequestOrBuilder
-
getUpdatesCount
public int getUpdatesCount()repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
- Specified by:
getUpdatesCount
in interfaceWriteRelationshipsRequestOrBuilder
-
getUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
- Specified by:
getUpdates
in interfaceWriteRelationshipsRequestOrBuilder
-
setUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
setUpdates
public WriteRelationshipsRequest.Builder setUpdates(int index, RelationshipUpdate.Builder builderForValue) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addUpdates
public WriteRelationshipsRequest.Builder addUpdates(int index, RelationshipUpdate.Builder builderForValue) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addAllUpdates
public WriteRelationshipsRequest.Builder addAllUpdates(Iterable<? extends RelationshipUpdate> values) repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
clearUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
removeUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
getUpdatesBuilder
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
getUpdatesOrBuilder
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
- Specified by:
getUpdatesOrBuilder
in interfaceWriteRelationshipsRequestOrBuilder
-
getUpdatesOrBuilderList
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
- Specified by:
getUpdatesOrBuilderList
in interfaceWriteRelationshipsRequestOrBuilder
-
addUpdatesBuilder
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
addUpdatesBuilder
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
getUpdatesBuilderList
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }
-
getOptionalPreconditionsList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsList
in interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsCount
public int getOptionalPreconditionsCount()To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsCount
in interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditions
in interfaceWriteRelationshipsRequestOrBuilder
-
setOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
setOptionalPreconditions
public WriteRelationshipsRequest.Builder setOptionalPreconditions(int index, Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
public WriteRelationshipsRequest.Builder addOptionalPreconditions(Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditions
public WriteRelationshipsRequest.Builder addOptionalPreconditions(int index, Precondition.Builder builderForValue) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addAllOptionalPreconditions
public WriteRelationshipsRequest.Builder addAllOptionalPreconditions(Iterable<? extends Precondition> values) To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
clearOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
removeOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsOrBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsOrBuilder
in interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsOrBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
- Specified by:
getOptionalPreconditionsOrBuilderList
in interfaceWriteRelationshipsRequestOrBuilder
-
addOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
addOptionalPreconditionsBuilder
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
getOptionalPreconditionsBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }
-
hasOptionalTransactionMetadata
public boolean hasOptionalTransactionMetadata()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
- Specified by:
hasOptionalTransactionMetadata
in interfaceWriteRelationshipsRequestOrBuilder
- Returns:
- Whether the optionalTransactionMetadata field is set.
-
getOptionalTransactionMetadata
public com.google.protobuf.Struct getOptionalTransactionMetadata()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
- Specified by:
getOptionalTransactionMetadata
in interfaceWriteRelationshipsRequestOrBuilder
- Returns:
- The optionalTransactionMetadata.
-
setOptionalTransactionMetadata
public WriteRelationshipsRequest.Builder setOptionalTransactionMetadata(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
-
setOptionalTransactionMetadata
public WriteRelationshipsRequest.Builder setOptionalTransactionMetadata(com.google.protobuf.Struct.Builder builderForValue) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
-
mergeOptionalTransactionMetadata
public WriteRelationshipsRequest.Builder mergeOptionalTransactionMetadata(com.google.protobuf.Struct value) optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
-
clearOptionalTransactionMetadata
optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
-
getOptionalTransactionMetadataBuilder
public com.google.protobuf.Struct.Builder getOptionalTransactionMetadataBuilder()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
-
getOptionalTransactionMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getOptionalTransactionMetadataOrBuilder()optional_transaction_metadata is an optional field that can be used to store metadata about the transaction. If specified, this metadata will be supplied in the WatchResponse for the updates associated with this transaction.
.google.protobuf.Struct optional_transaction_metadata = 3 [(.validate.rules) = { ... }
- Specified by:
getOptionalTransactionMetadataOrBuilder
in interfaceWriteRelationshipsRequestOrBuilder
-