Class StructType.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StructType.Builder>
com.google.cloud.automl.v1beta1.StructType.Builder
All Implemented Interfaces:
StructTypeOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
StructType

public static final class StructType.Builder extends com.google.protobuf.GeneratedMessage.Builder<StructType.Builder> implements StructTypeOrBuilder
 `StructType` defines the DataType-s of a [STRUCT][google.cloud.automl.v1beta1.TypeCode.STRUCT] type.
 
Protobuf type google.cloud.automl.v1beta1.StructType
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StructType.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<StructType.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public StructType.Builder mergeFrom(StructType other)
    • isInitialized

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

      public StructType.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<StructType.Builder>
      Throws:
      IOException
    • getFieldsCount

      public int getFieldsCount()
      Description copied from interface: StructTypeOrBuilder
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      Specified by:
      getFieldsCount in interface StructTypeOrBuilder
    • containsFields

      public boolean containsFields(String key)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      Specified by:
      containsFields in interface StructTypeOrBuilder
    • getFields

      @Deprecated public Map<String,DataType> getFields()
      Deprecated.
      Use getFieldsMap() instead.
      Specified by:
      getFields in interface StructTypeOrBuilder
    • getFieldsMap

      public Map<String,DataType> getFieldsMap()
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      Specified by:
      getFieldsMap in interface StructTypeOrBuilder
    • getFieldsOrDefault

      public DataType getFieldsOrDefault(String key, DataType defaultValue)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      Specified by:
      getFieldsOrDefault in interface StructTypeOrBuilder
    • getFieldsOrThrow

      public DataType getFieldsOrThrow(String key)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
      Specified by:
      getFieldsOrThrow in interface StructTypeOrBuilder
    • clearFields

      public StructType.Builder clearFields()
    • removeFields

      public StructType.Builder removeFields(String key)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    • getMutableFields

      @Deprecated public Map<String,DataType> getMutableFields()
      Deprecated.
      Use alternate mutation accessors instead.
    • putFields

      public StructType.Builder putFields(String key, DataType value)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    • putAllFields

      public StructType.Builder putAllFields(Map<String,DataType> values)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;
    • putFieldsBuilderIfAbsent

      public DataType.Builder putFieldsBuilderIfAbsent(String key)
       Unordered map of struct field names to their data types.
       Fields cannot be added or removed via Update. Their names and
       data types are still mutable.
       
      map<string, .google.cloud.automl.v1beta1.DataType> fields = 1;