Package tensorflow

Class Struct.DictValue.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Struct.DictValue.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
tensorflow.Struct.DictValue.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Struct.DictValueOrBuilder
Enclosing class:
Struct.DictValue

public static final class Struct.DictValue.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder> implements Struct.DictValueOrBuilder
 Represents a Python dict keyed by `str`.
 The comment on Unicode from Value.string_value applies analogously.
 
Protobuf type tensorflow.DictValue
  • 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.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
    • internalGetMutableMapFieldReflection

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
    • clear

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

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

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

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

      public Struct.DictValue.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<Struct.DictValue.Builder>
    • setField

      public Struct.DictValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
    • clearField

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

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

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

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

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

      public Struct.DictValue.Builder mergeFrom(Struct.DictValue other)
    • isInitialized

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

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

      public int getFieldsCount()
      Description copied from interface: Struct.DictValueOrBuilder
      map<string, .tensorflow.StructuredValue> fields = 1;
      Specified by:
      getFieldsCount in interface Struct.DictValueOrBuilder
    • containsFields

      public boolean containsFields(String key)
      map<string, .tensorflow.StructuredValue> fields = 1;
      Specified by:
      containsFields in interface Struct.DictValueOrBuilder
    • getFields

      Deprecated.
      Use getFieldsMap() instead.
      Specified by:
      getFields in interface Struct.DictValueOrBuilder
    • getFieldsMap

      public Map<String,Struct.StructuredValue> getFieldsMap()
      map<string, .tensorflow.StructuredValue> fields = 1;
      Specified by:
      getFieldsMap in interface Struct.DictValueOrBuilder
    • getFieldsOrDefault

      public Struct.StructuredValue getFieldsOrDefault(String key, Struct.StructuredValue defaultValue)
      map<string, .tensorflow.StructuredValue> fields = 1;
      Specified by:
      getFieldsOrDefault in interface Struct.DictValueOrBuilder
    • getFieldsOrThrow

      public Struct.StructuredValue getFieldsOrThrow(String key)
      map<string, .tensorflow.StructuredValue> fields = 1;
      Specified by:
      getFieldsOrThrow in interface Struct.DictValueOrBuilder
    • clearFields

      public Struct.DictValue.Builder clearFields()
    • removeFields

      public Struct.DictValue.Builder removeFields(String key)
      map<string, .tensorflow.StructuredValue> fields = 1;
    • getMutableFields

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

      public Struct.DictValue.Builder putFields(String key, Struct.StructuredValue value)
      map<string, .tensorflow.StructuredValue> fields = 1;
    • putAllFields

      map<string, .tensorflow.StructuredValue> fields = 1;
    • putFieldsBuilderIfAbsent

      public Struct.StructuredValue.Builder putFieldsBuilderIfAbsent(String key)
      map<string, .tensorflow.StructuredValue> fields = 1;
    • setUnknownFields

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

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