Class CreateInstanceMetadata.Builder

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

    public static final class CreateInstanceMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<CreateInstanceMetadata.Builder>
    implements CreateInstanceMetadataOrBuilder
     Metadata type for the operation returned by
     [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance].
     
    Protobuf type google.spanner.admin.instance.v1.CreateInstanceMetadata
    • 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<CreateInstanceMetadata.Builder>
      • clear

        public CreateInstanceMetadata.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<CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • getDefaultInstanceForType

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

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

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

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • clearField

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • clearOneof

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • setRepeatedField

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • addRepeatedField

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • isInitialized

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

        public CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
        Throws:
        IOException
      • hasInstance

        public boolean hasInstance()
         The instance being created.
         
        .google.spanner.admin.instance.v1.Instance instance = 1;
        Specified by:
        hasInstance in interface CreateInstanceMetadataOrBuilder
        Returns:
        Whether the instance field is set.
      • clearInstance

        public CreateInstanceMetadata.Builder clearInstance()
         The instance being created.
         
        .google.spanner.admin.instance.v1.Instance instance = 1;
      • getInstanceBuilder

        public Instance.Builder getInstanceBuilder()
         The instance being created.
         
        .google.spanner.admin.instance.v1.Instance instance = 1;
      • hasStartTime

        public boolean hasStartTime()
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        hasStartTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        getStartTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public CreateInstanceMetadata.Builder setStartTime​(com.google.protobuf.Timestamp value)
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • setStartTime

        public CreateInstanceMetadata.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • mergeStartTime

        public CreateInstanceMetadata.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • clearStartTime

        public CreateInstanceMetadata.Builder clearStartTime()
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
         The time at which the
         [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance]
         request was received.
         
        .google.protobuf.Timestamp start_time = 2;
        Specified by:
        getStartTimeOrBuilder in interface CreateInstanceMetadataOrBuilder
      • hasCancelTime

        public boolean hasCancelTime()
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
        Specified by:
        hasCancelTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        Whether the cancelTime field is set.
      • getCancelTime

        public com.google.protobuf.Timestamp getCancelTime()
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
        Specified by:
        getCancelTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        The cancelTime.
      • setCancelTime

        public CreateInstanceMetadata.Builder setCancelTime​(com.google.protobuf.Timestamp value)
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
      • setCancelTime

        public CreateInstanceMetadata.Builder setCancelTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
      • mergeCancelTime

        public CreateInstanceMetadata.Builder mergeCancelTime​(com.google.protobuf.Timestamp value)
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
      • clearCancelTime

        public CreateInstanceMetadata.Builder clearCancelTime()
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
      • getCancelTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder()
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
      • getCancelTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder()
         The time at which this operation was cancelled. If set, this operation is
         in the process of undoing itself (which is guaranteed to succeed) and
         cannot be cancelled again.
         
        .google.protobuf.Timestamp cancel_time = 3;
        Specified by:
        getCancelTimeOrBuilder in interface CreateInstanceMetadataOrBuilder
      • hasEndTime

        public boolean hasEndTime()
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
        Specified by:
        hasEndTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        Whether the endTime field is set.
      • getEndTime

        public com.google.protobuf.Timestamp getEndTime()
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
        Specified by:
        getEndTime in interface CreateInstanceMetadataOrBuilder
        Returns:
        The endTime.
      • setEndTime

        public CreateInstanceMetadata.Builder setEndTime​(com.google.protobuf.Timestamp value)
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
      • setEndTime

        public CreateInstanceMetadata.Builder setEndTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
      • mergeEndTime

        public CreateInstanceMetadata.Builder mergeEndTime​(com.google.protobuf.Timestamp value)
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
      • clearEndTime

        public CreateInstanceMetadata.Builder clearEndTime()
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
      • getEndTimeBuilder

        public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
      • getEndTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
         The time at which this operation failed or was completed successfully.
         
        .google.protobuf.Timestamp end_time = 4;
        Specified by:
        getEndTimeOrBuilder in interface CreateInstanceMetadataOrBuilder
      • setUnknownFields

        public final CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>
      • mergeUnknownFields

        public final CreateInstanceMetadata.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<CreateInstanceMetadata.Builder>