Package com.authzed.api.v1
Class RelationshipUpdate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RelationshipUpdate.Builder>
com.authzed.api.v1.RelationshipUpdate.Builder
- All Implemented Interfaces:
RelationshipUpdateOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RelationshipUpdate
public static final class RelationshipUpdate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RelationshipUpdate.Builder>
implements RelationshipUpdateOrBuilder
RelationshipUpdate is used for mutating a single relationship within the service. CREATE will create the relationship only if it doesn't exist, and error otherwise. TOUCH will upsert the relationship, and will not error if it already exists. DELETE will delete the relationship. If the relationship does not exist, this operation will no-op.Protobuf type
authzed.api.v1.RelationshipUpdate
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
clear()
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ...
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ...
int
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ...
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
boolean
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
mergeFrom
(RelationshipUpdate other) mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeRelationship
(Relationship value) .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ...
setOperationValue
(int value) .authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ...
setRelationship
(Relationship value) .authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ...
setRelationship
(Relationship.Builder builderForValue) .authzed.api.v1.Relationship relationship = 2 [(.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<RelationshipUpdate.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<RelationshipUpdate.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<RelationshipUpdate.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<RelationshipUpdate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage.Builder<RelationshipUpdate.Builder>
-
mergeFrom
public RelationshipUpdate.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<RelationshipUpdate.Builder>
- Throws:
IOException
-
getOperationValue
public int getOperationValue().authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
- Specified by:
getOperationValue
in interfaceRelationshipUpdateOrBuilder
- Returns:
- The enum numeric value on the wire for operation.
-
setOperationValue
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The enum numeric value on the wire for operation to set.- Returns:
- This builder for chaining.
-
getOperation
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
- Specified by:
getOperation
in interfaceRelationshipUpdateOrBuilder
- Returns:
- The operation.
-
setOperation
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
- Parameters:
value
- The operation to set.- Returns:
- This builder for chaining.
-
clearOperation
.authzed.api.v1.RelationshipUpdate.Operation operation = 1 [(.validate.rules) = { ... }
- Returns:
- This builder for chaining.
-
hasRelationship
public boolean hasRelationship().authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
- Specified by:
hasRelationship
in interfaceRelationshipUpdateOrBuilder
- Returns:
- Whether the relationship field is set.
-
getRelationship
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
- Specified by:
getRelationship
in interfaceRelationshipUpdateOrBuilder
- Returns:
- The relationship.
-
setRelationship
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
-
setRelationship
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
-
mergeRelationship
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
-
clearRelationship
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
-
getRelationshipBuilder
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
-
getRelationshipOrBuilder
.authzed.api.v1.Relationship relationship = 2 [(.validate.rules) = { ... }
- Specified by:
getRelationshipOrBuilder
in interfaceRelationshipUpdateOrBuilder
-