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.Descriptorcom.google.protobuf.Descriptors.DescriptorgetOptionalPreconditions(int index) To be bounded by configurationgetOptionalPreconditionsBuilder(int index) To be bounded by configurationTo be bounded by configurationintTo be bounded by configurationTo be bounded by configurationgetOptionalPreconditionsOrBuilder(int index) To be bounded by configurationList<? extends PreconditionOrBuilder>To be bounded by configurationcom.google.protobuf.Structoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.Struct.Builderoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.com.google.protobuf.StructOrBuilderoptional_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) = { ...intrepeated .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) = { ...booleanoptional_transaction_metadata is an optional field that can be used to store metadata about the transaction.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<WriteRelationshipsRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteRelationshipsRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<WriteRelationshipsRequest.Builder>- Throws:
IOException
-
getUpdatesList
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }- Specified by:
getUpdatesListin interfaceWriteRelationshipsRequestOrBuilder
-
getUpdatesCount
public int getUpdatesCount()repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }- Specified by:
getUpdatesCountin interfaceWriteRelationshipsRequestOrBuilder
-
getUpdates
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }- Specified by:
getUpdatesin 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:
getUpdatesOrBuilderin interfaceWriteRelationshipsRequestOrBuilder
-
getUpdatesOrBuilderList
repeated .authzed.api.v1.RelationshipUpdate updates = 1 [(.validate.rules) = { ... }- Specified by:
getUpdatesOrBuilderListin 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:
getOptionalPreconditionsListin interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsCount
public int getOptionalPreconditionsCount()To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsCountin interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditions
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsin 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:
getOptionalPreconditionsOrBuilderin interfaceWriteRelationshipsRequestOrBuilder
-
getOptionalPreconditionsOrBuilderList
To be bounded by configuration
repeated .authzed.api.v1.Precondition optional_preconditions = 2 [(.validate.rules) = { ... }- Specified by:
getOptionalPreconditionsOrBuilderListin 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:
hasOptionalTransactionMetadatain 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:
getOptionalTransactionMetadatain 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:
getOptionalTransactionMetadataOrBuilderin interfaceWriteRelationshipsRequestOrBuilder
-