Class AnnotationSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AnnotationSpec.Builder>
com.google.cloud.aiplatform.v1.AnnotationSpec.Builder
All Implemented Interfaces:
AnnotationSpecOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AnnotationSpec

public static final class AnnotationSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<AnnotationSpec.Builder> implements AnnotationSpecOrBuilder
 Identifies a concept with which DataItems may be annotated with.
 
Protobuf type google.cloud.aiplatform.v1.AnnotationSpec
  • Method Details

    • getDescriptor

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

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

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

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

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

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

      public AnnotationSpec.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<AnnotationSpec.Builder>
    • mergeFrom

      public AnnotationSpec.Builder mergeFrom(AnnotationSpec other)
    • isInitialized

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

      public AnnotationSpec.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<AnnotationSpec.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. Resource name of the AnnotationSpec.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface AnnotationSpecOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. Resource name of the AnnotationSpec.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface AnnotationSpecOrBuilder
      Returns:
      The bytes for name.
    • setName

      public AnnotationSpec.Builder setName(String value)
       Output only. Resource name of the AnnotationSpec.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public AnnotationSpec.Builder clearName()
       Output only. Resource name of the AnnotationSpec.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public AnnotationSpec.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. Resource name of the AnnotationSpec.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Required. The user-defined name of the AnnotationSpec.
       The name can be up to 128 characters long and can consist of any UTF-8
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayName in interface AnnotationSpecOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Required. The user-defined name of the AnnotationSpec.
       The name can be up to 128 characters long and can consist of any UTF-8
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDisplayNameBytes in interface AnnotationSpecOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

      public AnnotationSpec.Builder setDisplayName(String value)
       Required. The user-defined name of the AnnotationSpec.
       The name can be up to 128 characters long and can consist of any UTF-8
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

      public AnnotationSpec.Builder clearDisplayName()
       Required. The user-defined name of the AnnotationSpec.
       The name can be up to 128 characters long and can consist of any UTF-8
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AnnotationSpec.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Required. The user-defined name of the AnnotationSpec.
       The name can be up to 128 characters long and can consist of any UTF-8
       characters.
       
      string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface AnnotationSpecOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface AnnotationSpecOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public AnnotationSpec.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public AnnotationSpec.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public AnnotationSpec.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public AnnotationSpec.Builder clearCreateTime()
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Timestamp when this AnnotationSpec was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface AnnotationSpecOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface AnnotationSpecOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface AnnotationSpecOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public AnnotationSpec.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public AnnotationSpec.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public AnnotationSpec.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public AnnotationSpec.Builder clearUpdateTime()
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Timestamp when AnnotationSpec was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface AnnotationSpecOrBuilder
    • getEtag

      public String getEtag()
       Optional. Used to perform consistent read-modify-write updates. If not set,
       a blind "overwrite" update happens.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface AnnotationSpecOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. Used to perform consistent read-modify-write updates. If not set,
       a blind "overwrite" update happens.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface AnnotationSpecOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public AnnotationSpec.Builder setEtag(String value)
       Optional. Used to perform consistent read-modify-write updates. If not set,
       a blind "overwrite" update happens.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public AnnotationSpec.Builder clearEtag()
       Optional. Used to perform consistent read-modify-write updates. If not set,
       a blind "overwrite" update happens.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public AnnotationSpec.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. Used to perform consistent read-modify-write updates. If not set,
       a blind "overwrite" update happens.
       
      string etag = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.