Class MutationResult.Builder

  • All Implemented Interfaces:
    MutationResultOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    MutationResult

    public static final class MutationResult.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
    implements MutationResultOrBuilder
     The result of applying a mutation.
     
    Protobuf type google.datastore.v1.MutationResult
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • clear

        public MutationResult.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • getDefaultInstanceForType

        public MutationResult getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MutationResult build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MutationResult buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MutationResult.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • setField

        public MutationResult.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • clearField

        public MutationResult.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • clearOneof

        public MutationResult.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • setRepeatedField

        public MutationResult.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • addRepeatedField

        public MutationResult.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • mergeFrom

        public MutationResult.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • mergeFrom

        public MutationResult.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                         throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MutationResult.Builder>
        Throws:
        IOException
      • hasKey

        public boolean hasKey()
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
        Specified by:
        hasKey in interface MutationResultOrBuilder
        Returns:
        Whether the key field is set.
      • getKey

        public Key getKey()
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
        Specified by:
        getKey in interface MutationResultOrBuilder
        Returns:
        The key.
      • setKey

        public MutationResult.Builder setKey​(Key value)
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
      • setKey

        public MutationResult.Builder setKey​(Key.Builder builderForValue)
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
      • mergeKey

        public MutationResult.Builder mergeKey​(Key value)
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
      • clearKey

        public MutationResult.Builder clearKey()
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
      • getKeyBuilder

        public Key.Builder getKeyBuilder()
         The automatically allocated key.
         Set only when the mutation allocated a key.
         
        .google.datastore.v1.Key key = 3;
      • getVersion

        public long getVersion()
         The version of the entity on the server after processing the mutation. If
         the mutation doesn't change anything on the server, then the version will
         be the version of the current entity or, if no entity is present, a version
         that is strictly greater than the version of any previous entity and less
         than the version of any possible future entity.
         
        int64 version = 4;
        Specified by:
        getVersion in interface MutationResultOrBuilder
        Returns:
        The version.
      • setVersion

        public MutationResult.Builder setVersion​(long value)
         The version of the entity on the server after processing the mutation. If
         the mutation doesn't change anything on the server, then the version will
         be the version of the current entity or, if no entity is present, a version
         that is strictly greater than the version of any previous entity and less
         than the version of any possible future entity.
         
        int64 version = 4;
        Parameters:
        value - The version to set.
        Returns:
        This builder for chaining.
      • clearVersion

        public MutationResult.Builder clearVersion()
         The version of the entity on the server after processing the mutation. If
         the mutation doesn't change anything on the server, then the version will
         be the version of the current entity or, if no entity is present, a version
         that is strictly greater than the version of any previous entity and less
         than the version of any possible future entity.
         
        int64 version = 4;
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
        Specified by:
        hasCreateTime in interface MutationResultOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
        Specified by:
        getCreateTime in interface MutationResultOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public MutationResult.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
      • setCreateTime

        public MutationResult.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
      • mergeCreateTime

        public MutationResult.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
      • clearCreateTime

        public MutationResult.Builder clearCreateTime()
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
      • getCreateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
         The create time of the entity. This field will not be set after a 'delete'.
         
        .google.protobuf.Timestamp create_time = 7;
        Specified by:
        getCreateTimeOrBuilder in interface MutationResultOrBuilder
      • hasUpdateTime

        public boolean hasUpdateTime()
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
        Specified by:
        hasUpdateTime in interface MutationResultOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
        Specified by:
        getUpdateTime in interface MutationResultOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public MutationResult.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
      • setUpdateTime

        public MutationResult.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
      • mergeUpdateTime

        public MutationResult.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
      • clearUpdateTime

        public MutationResult.Builder clearUpdateTime()
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
      • getUpdateTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
         The update time of the entity on the server after processing the mutation.
         If the mutation doesn't change anything on the server, then the timestamp
         will be the update timestamp of the current entity. This field will not be
         set after a 'delete'.
         
        .google.protobuf.Timestamp update_time = 6;
        Specified by:
        getUpdateTimeOrBuilder in interface MutationResultOrBuilder
      • getConflictDetected

        public boolean getConflictDetected()
         Whether a conflict was detected for this mutation. Always false when a
         conflict detection strategy field is not set in the mutation.
         
        bool conflict_detected = 5;
        Specified by:
        getConflictDetected in interface MutationResultOrBuilder
        Returns:
        The conflictDetected.
      • setConflictDetected

        public MutationResult.Builder setConflictDetected​(boolean value)
         Whether a conflict was detected for this mutation. Always false when a
         conflict detection strategy field is not set in the mutation.
         
        bool conflict_detected = 5;
        Parameters:
        value - The conflictDetected to set.
        Returns:
        This builder for chaining.
      • clearConflictDetected

        public MutationResult.Builder clearConflictDetected()
         Whether a conflict was detected for this mutation. Always false when a
         conflict detection strategy field is not set in the mutation.
         
        bool conflict_detected = 5;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final MutationResult.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>
      • mergeUnknownFields

        public final MutationResult.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MutationResult.Builder>