Class SyntheticField.Builder

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

public static final class SyntheticField.Builder extends com.google.protobuf.GeneratedMessage.Builder<SyntheticField.Builder> implements SyntheticFieldOrBuilder
 Represents a single named field within a SyntheticExample.
 
Protobuf type google.cloud.aiplatform.v1.SyntheticField
  • 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<SyntheticField.Builder>
    • clear

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

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

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

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

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

      public SyntheticField.Builder mergeFrom(SyntheticField other)
    • isInitialized

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

      public SyntheticField.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<SyntheticField.Builder>
      Throws:
      IOException
    • getFieldName

      public String getFieldName()
       Optional. The name of the field.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldName in interface SyntheticFieldOrBuilder
      Returns:
      The fieldName.
    • getFieldNameBytes

      public com.google.protobuf.ByteString getFieldNameBytes()
       Optional. The name of the field.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFieldNameBytes in interface SyntheticFieldOrBuilder
      Returns:
      The bytes for fieldName.
    • setFieldName

      public SyntheticField.Builder setFieldName(String value)
       Optional. The name of the field.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The fieldName to set.
      Returns:
      This builder for chaining.
    • clearFieldName

      public SyntheticField.Builder clearFieldName()
       Optional. The name of the field.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFieldNameBytes

      public SyntheticField.Builder setFieldNameBytes(com.google.protobuf.ByteString value)
       Optional. The name of the field.
       
      string field_name = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for fieldName to set.
      Returns:
      This builder for chaining.
    • hasContent

      public boolean hasContent()
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasContent in interface SyntheticFieldOrBuilder
      Returns:
      Whether the content field is set.
    • getContent

      public Content getContent()
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContent in interface SyntheticFieldOrBuilder
      Returns:
      The content.
    • setContent

      public SyntheticField.Builder setContent(Content value)
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
    • setContent

      public SyntheticField.Builder setContent(Content.Builder builderForValue)
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeContent

      public SyntheticField.Builder mergeContent(Content value)
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearContent

      public SyntheticField.Builder clearContent()
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContentBuilder

      public Content.Builder getContentBuilder()
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
    • getContentOrBuilder

      public ContentOrBuilder getContentOrBuilder()
       Required. The content of the field.
       
      .google.cloud.aiplatform.v1.Content content = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getContentOrBuilder in interface SyntheticFieldOrBuilder