Package tensorflow
Class Struct.DictValue.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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,java.lang.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 typetensorflow.DictValue
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Struct.DictValue.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Struct.DictValuebuild()Struct.DictValuebuildPartial()Struct.DictValue.Builderclear()Struct.DictValue.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Struct.DictValue.BuilderclearFields()Struct.DictValue.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Struct.DictValue.Builderclone()booleancontainsFields(java.lang.String key)map<string, .tensorflow.StructuredValue> fields = 1;Struct.DictValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.util.Map<java.lang.String,Struct.StructuredValue>getFields()Deprecated.intgetFieldsCount()map<string, .tensorflow.StructuredValue> fields = 1;java.util.Map<java.lang.String,Struct.StructuredValue>getFieldsMap()map<string, .tensorflow.StructuredValue> fields = 1;Struct.StructuredValuegetFieldsOrDefault(java.lang.String key, Struct.StructuredValue defaultValue)map<string, .tensorflow.StructuredValue> fields = 1;Struct.StructuredValuegetFieldsOrThrow(java.lang.String key)map<string, .tensorflow.StructuredValue> fields = 1;java.util.Map<java.lang.String,Struct.StructuredValue>getMutableFields()Deprecated.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()Struct.DictValue.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Struct.DictValue.BuildermergeFrom(com.google.protobuf.Message other)Struct.DictValue.BuildermergeFrom(Struct.DictValue other)Struct.DictValue.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Struct.DictValue.BuilderputAllFields(java.util.Map<java.lang.String,Struct.StructuredValue> values)map<string, .tensorflow.StructuredValue> fields = 1;Struct.DictValue.BuilderputFields(java.lang.String key, Struct.StructuredValue value)map<string, .tensorflow.StructuredValue> fields = 1;Struct.DictValue.BuilderremoveFields(java.lang.String key)map<string, .tensorflow.StructuredValue> fields = 1;Struct.DictValue.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Struct.DictValue.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Struct.DictValue.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
clear
public Struct.DictValue.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
getDefaultInstanceForType
public Struct.DictValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Struct.DictValue build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Struct.DictValue buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Struct.DictValue.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
setField
public Struct.DictValue.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
clearField
public Struct.DictValue.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
clearOneof
public Struct.DictValue.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
setRepeatedField
public Struct.DictValue.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
addRepeatedField
public Struct.DictValue.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
mergeFrom
public Struct.DictValue.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.DictValue.Builder>
-
mergeFrom
public Struct.DictValue.Builder mergeFrom(Struct.DictValue other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
mergeFrom
public Struct.DictValue.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.DictValue.Builder>- Throws:
java.io.IOException
-
getFieldsCount
public int getFieldsCount()
Description copied from interface:Struct.DictValueOrBuildermap<string, .tensorflow.StructuredValue> fields = 1;- Specified by:
getFieldsCountin interfaceStruct.DictValueOrBuilder
-
containsFields
public boolean containsFields(java.lang.String key)
map<string, .tensorflow.StructuredValue> fields = 1;- Specified by:
containsFieldsin interfaceStruct.DictValueOrBuilder
-
getFields
@Deprecated public java.util.Map<java.lang.String,Struct.StructuredValue> getFields()
Deprecated.UsegetFieldsMap()instead.- Specified by:
getFieldsin interfaceStruct.DictValueOrBuilder
-
getFieldsMap
public java.util.Map<java.lang.String,Struct.StructuredValue> getFieldsMap()
map<string, .tensorflow.StructuredValue> fields = 1;- Specified by:
getFieldsMapin interfaceStruct.DictValueOrBuilder
-
getFieldsOrDefault
public Struct.StructuredValue getFieldsOrDefault(java.lang.String key, Struct.StructuredValue defaultValue)
map<string, .tensorflow.StructuredValue> fields = 1;- Specified by:
getFieldsOrDefaultin interfaceStruct.DictValueOrBuilder
-
getFieldsOrThrow
public Struct.StructuredValue getFieldsOrThrow(java.lang.String key)
map<string, .tensorflow.StructuredValue> fields = 1;- Specified by:
getFieldsOrThrowin interfaceStruct.DictValueOrBuilder
-
clearFields
public Struct.DictValue.Builder clearFields()
-
removeFields
public Struct.DictValue.Builder removeFields(java.lang.String key)
map<string, .tensorflow.StructuredValue> fields = 1;
-
getMutableFields
@Deprecated public java.util.Map<java.lang.String,Struct.StructuredValue> getMutableFields()
Deprecated.Use alternate mutation accessors instead.
-
putFields
public Struct.DictValue.Builder putFields(java.lang.String key, Struct.StructuredValue value)
map<string, .tensorflow.StructuredValue> fields = 1;
-
putAllFields
public Struct.DictValue.Builder putAllFields(java.util.Map<java.lang.String,Struct.StructuredValue> values)
map<string, .tensorflow.StructuredValue> fields = 1;
-
setUnknownFields
public final Struct.DictValue.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
mergeUnknownFields
public final Struct.DictValue.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.DictValue.Builder>
-
-