Class AspectType.MetadataTemplate.Annotations.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AspectType.MetadataTemplate.Annotations.Builder>
com.google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations.Builder
All Implemented Interfaces:
AspectType.MetadataTemplate.AnnotationsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
AspectType.MetadataTemplate.Annotations

public static final class AspectType.MetadataTemplate.Annotations.Builder extends com.google.protobuf.GeneratedMessage.Builder<AspectType.MetadataTemplate.Annotations.Builder> implements AspectType.MetadataTemplate.AnnotationsOrBuilder
 Definition of the annotations of a field.
 
Protobuf type google.cloud.dataplex.v1.AspectType.MetadataTemplate.Annotations
  • 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<AspectType.MetadataTemplate.Annotations.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<AspectType.MetadataTemplate.Annotations.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<AspectType.MetadataTemplate.Annotations.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public AspectType.MetadataTemplate.Annotations.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<AspectType.MetadataTemplate.Annotations.Builder>
    • mergeFrom

    • isInitialized

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

      public AspectType.MetadataTemplate.Annotations.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<AspectType.MetadataTemplate.Annotations.Builder>
      Throws:
      IOException
    • getDeprecated

      public String getDeprecated()
       Optional. Marks a field as deprecated. You can include a deprecation
       message.
       
      string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeprecated in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The deprecated.
    • getDeprecatedBytes

      public com.google.protobuf.ByteString getDeprecatedBytes()
       Optional. Marks a field as deprecated. You can include a deprecation
       message.
       
      string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDeprecatedBytes in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The bytes for deprecated.
    • setDeprecated

       Optional. Marks a field as deprecated. You can include a deprecation
       message.
       
      string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The deprecated to set.
      Returns:
      This builder for chaining.
    • clearDeprecated

       Optional. Marks a field as deprecated. You can include a deprecation
       message.
       
      string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDeprecatedBytes

      public AspectType.MetadataTemplate.Annotations.Builder setDeprecatedBytes(com.google.protobuf.ByteString value)
       Optional. Marks a field as deprecated. You can include a deprecation
       message.
       
      string deprecated = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for deprecated to set.
      Returns:
      This builder for chaining.
    • getDisplayName

      public String getDisplayName()
       Optional. Display name for a field.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayName in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The displayName.
    • getDisplayNameBytes

      public com.google.protobuf.ByteString getDisplayNameBytes()
       Optional. Display name for a field.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayNameBytes in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The bytes for displayName.
    • setDisplayName

       Optional. Display name for a field.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayName to set.
      Returns:
      This builder for chaining.
    • clearDisplayName

       Optional. Display name for a field.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDisplayNameBytes

      public AspectType.MetadataTemplate.Annotations.Builder setDisplayNameBytes(com.google.protobuf.ByteString value)
       Optional. Display name for a field.
       
      string display_name = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for displayName to set.
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       Optional. Description for a field.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescription in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       Optional. Description for a field.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDescriptionBytes in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The bytes for description.
    • setDescription

       Optional. Description for a field.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

       Optional. Description for a field.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public AspectType.MetadataTemplate.Annotations.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       Optional. Description for a field.
       
      string description = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getDisplayOrder

      public int getDisplayOrder()
       Optional. Display order for a field. You can use this to reorder where
       a field is rendered.
       
      int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getDisplayOrder in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The displayOrder.
    • setDisplayOrder

      public AspectType.MetadataTemplate.Annotations.Builder setDisplayOrder(int value)
       Optional. Display order for a field. You can use this to reorder where
       a field is rendered.
       
      int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The displayOrder to set.
      Returns:
      This builder for chaining.
    • clearDisplayOrder

       Optional. Display order for a field. You can use this to reorder where
       a field is rendered.
       
      int32 display_order = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getStringType

      public String getStringType()
       Optional. You can use String Type annotations to specify special
       meaning to string fields. The following values are supported:
      
       * richText: The field must be interpreted as a rich text field.
       * url: A fully qualified URL link.
       * resource: A service qualified resource reference.
       
      string string_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringType in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The stringType.
    • getStringTypeBytes

      public com.google.protobuf.ByteString getStringTypeBytes()
       Optional. You can use String Type annotations to specify special
       meaning to string fields. The following values are supported:
      
       * richText: The field must be interpreted as a rich text field.
       * url: A fully qualified URL link.
       * resource: A service qualified resource reference.
       
      string string_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringTypeBytes in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The bytes for stringType.
    • setStringType

       Optional. You can use String Type annotations to specify special
       meaning to string fields. The following values are supported:
      
       * richText: The field must be interpreted as a rich text field.
       * url: A fully qualified URL link.
       * resource: A service qualified resource reference.
       
      string string_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stringType to set.
      Returns:
      This builder for chaining.
    • clearStringType

       Optional. You can use String Type annotations to specify special
       meaning to string fields. The following values are supported:
      
       * richText: The field must be interpreted as a rich text field.
       * url: A fully qualified URL link.
       * resource: A service qualified resource reference.
       
      string string_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setStringTypeBytes

      public AspectType.MetadataTemplate.Annotations.Builder setStringTypeBytes(com.google.protobuf.ByteString value)
       Optional. You can use String Type annotations to specify special
       meaning to string fields. The following values are supported:
      
       * richText: The field must be interpreted as a rich text field.
       * url: A fully qualified URL link.
       * resource: A service qualified resource reference.
       
      string string_type = 6 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for stringType to set.
      Returns:
      This builder for chaining.
    • getStringValuesList

      public com.google.protobuf.ProtocolStringList getStringValuesList()
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringValuesList in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      A list containing the stringValues.
    • getStringValuesCount

      public int getStringValuesCount()
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringValuesCount in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Returns:
      The count of stringValues.
    • getStringValues

      public String getStringValues(int index)
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringValues in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The stringValues at the given index.
    • getStringValuesBytes

      public com.google.protobuf.ByteString getStringValuesBytes(int index)
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getStringValuesBytes in interface AspectType.MetadataTemplate.AnnotationsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the stringValues at the given index.
    • setStringValues

      public AspectType.MetadataTemplate.Annotations.Builder setStringValues(int index, String value)
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The stringValues to set.
      Returns:
      This builder for chaining.
    • addStringValues

       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The stringValues to add.
      Returns:
      This builder for chaining.
    • addAllStringValues

       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The stringValues to add.
      Returns:
      This builder for chaining.
    • clearStringValues

       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addStringValuesBytes

      public AspectType.MetadataTemplate.Annotations.Builder addStringValuesBytes(com.google.protobuf.ByteString value)
       Optional. Suggested hints for string fields. You can use them to
       suggest values to users through console.
       
      repeated string string_values = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the stringValues to add.
      Returns:
      This builder for chaining.