Package tensorflow
Class Struct.StructuredValue
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- tensorflow.Struct.StructuredValue
-
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable,Struct.StructuredValueOrBuilder
- Enclosing class:
- Struct
public static final class Struct.StructuredValue extends com.google.protobuf.GeneratedMessageV3 implements Struct.StructuredValueOrBuilder
`StructuredValue` represents a dynamically typed value representing various data structures that are inspired by Python data structures typically used in TensorFlow functions as inputs and outputs. For example when saving a Layer there may be a `training` argument. If the user passes a boolean True/False, that switches between two concrete TensorFlow functions. In order to switch between them in the same way after loading the SavedModel, we need to represent "True" and "False". A more advanced example might be a function which takes a list of dictionaries mapping from strings to Tensors. In order to map from user-specified arguments `[{"a": tf.constant(1.)}, {"q": tf.constant(3.)}]` after load to the right saved TensorFlow function, we need to represent the nested structure and the strings, recording that we have a trace for anything matching `[{"a": tf.TensorSpec(None, tf.float32)}, {"q": tf.TensorSpec([], tf.float64)}]` as an example. Likewise functions may return nested structures of Tensors, for example returning a dictionary mapping from strings to Tensors. In order for the loaded function to return the same structure we need to serialize it. This is an ergonomic aid for working with loaded SavedModels, not a promise to serialize all possible function signatures. For example we do not expect to pickle generic Python objects, and ideally we'd stay language-agnostic.Protobuf typetensorflow.StructuredValue- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStruct.StructuredValue.Builder`StructuredValue` represents a dynamically typed value representing various data structures that are inspired by Python data structures typically used in TensorFlow functions as inputs and outputs.static classStruct.StructuredValue.KindCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBOOL_VALUE_FIELD_NUMBERstatic intDICT_VALUE_FIELD_NUMBERstatic intFLOAT64_VALUE_FIELD_NUMBERstatic intINT64_VALUE_FIELD_NUMBERstatic intLIST_VALUE_FIELD_NUMBERstatic intNAMED_TUPLE_VALUE_FIELD_NUMBERstatic intNONE_VALUE_FIELD_NUMBERstatic intSTRING_VALUE_FIELD_NUMBERstatic intTENSOR_DTYPE_VALUE_FIELD_NUMBERstatic intTENSOR_SHAPE_VALUE_FIELD_NUMBERstatic intTENSOR_SPEC_VALUE_FIELD_NUMBERstatic intTUPLE_VALUE_FIELD_NUMBERstatic intTYPE_SPEC_VALUE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetBoolValue()Represents a boolean value.static Struct.StructuredValuegetDefaultInstance()Struct.StructuredValuegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Struct.DictValuegetDictValue()Represents a dict `Value`.Struct.DictValueOrBuildergetDictValueOrBuilder()Represents a dict `Value`.doublegetFloat64Value()Represents a double-precision floating-point value (a Python `float`).longgetInt64Value()Represents a signed integer value, limited to 64 bits.Struct.StructuredValue.KindCasegetKindCase()Struct.ListValuegetListValue()Represents a list of `Value`.Struct.ListValueOrBuildergetListValueOrBuilder()Represents a list of `Value`.Struct.NamedTupleValuegetNamedTupleValue()Represents Python's namedtuple.Struct.NamedTupleValueOrBuildergetNamedTupleValueOrBuilder()Represents Python's namedtuple.Struct.NoneValuegetNoneValue()Represents None.Struct.NoneValueOrBuildergetNoneValueOrBuilder()Represents None.com.google.protobuf.Parser<Struct.StructuredValue>getParserForType()intgetSerializedSize()java.lang.StringgetStringValue()Represents a string of Unicode characters stored in a Python `str`.com.google.protobuf.ByteStringgetStringValueBytes()Represents a string of Unicode characters stored in a Python `str`.DataTypegetTensorDtypeValue()Represents an enum value for dtype.intgetTensorDtypeValueValue()Represents an enum value for dtype.TensorShapeProtogetTensorShapeValue()Represents a TensorShape.TensorShapeProtoOrBuildergetTensorShapeValueOrBuilder()Represents a TensorShape.Struct.TensorSpecProtogetTensorSpecValue()Represents a value for tf.TensorSpec.Struct.TensorSpecProtoOrBuildergetTensorSpecValueOrBuilder()Represents a value for tf.TensorSpec.Struct.TupleValuegetTupleValue()Represents a tuple of `Value`.Struct.TupleValueOrBuildergetTupleValueOrBuilder()Represents a tuple of `Value`.Struct.TypeSpecProtogetTypeSpecValue()Represents a value for tf.TypeSpec.Struct.TypeSpecProtoOrBuildergetTypeSpecValueOrBuilder()Represents a value for tf.TypeSpec.com.google.protobuf.UnknownFieldSetgetUnknownFields()booleanhasDictValue()Represents a dict `Value`.inthashCode()booleanhasListValue()Represents a list of `Value`.booleanhasNamedTupleValue()Represents Python's namedtuple.booleanhasNoneValue()Represents None.booleanhasTensorShapeValue()Represents a TensorShape.booleanhasTensorSpecValue()Represents a value for tf.TensorSpec.booleanhasTupleValue()Represents a tuple of `Value`.booleanhasTypeSpecValue()Represents a value for tf.TypeSpec.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Struct.StructuredValue.BuildernewBuilder()static Struct.StructuredValue.BuildernewBuilder(Struct.StructuredValue prototype)Struct.StructuredValue.BuildernewBuilderForType()protected Struct.StructuredValue.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static Struct.StructuredValueparseDelimitedFrom(java.io.InputStream input)static Struct.StructuredValueparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Struct.StructuredValueparseFrom(byte[] data)static Struct.StructuredValueparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Struct.StructuredValueparseFrom(com.google.protobuf.ByteString data)static Struct.StructuredValueparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Struct.StructuredValueparseFrom(com.google.protobuf.CodedInputStream input)static Struct.StructuredValueparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Struct.StructuredValueparseFrom(java.io.InputStream input)static Struct.StructuredValueparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static Struct.StructuredValueparseFrom(java.nio.ByteBuffer data)static Struct.StructuredValueparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<Struct.StructuredValue>parser()Struct.StructuredValue.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
NONE_VALUE_FIELD_NUMBER
public static final int NONE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
FLOAT64_VALUE_FIELD_NUMBER
public static final int FLOAT64_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INT64_VALUE_FIELD_NUMBER
public static final int INT64_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STRING_VALUE_FIELD_NUMBER
public static final int STRING_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BOOL_VALUE_FIELD_NUMBER
public static final int BOOL_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_SHAPE_VALUE_FIELD_NUMBER
public static final int TENSOR_SHAPE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_DTYPE_VALUE_FIELD_NUMBER
public static final int TENSOR_DTYPE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TENSOR_SPEC_VALUE_FIELD_NUMBER
public static final int TENSOR_SPEC_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TYPE_SPEC_VALUE_FIELD_NUMBER
public static final int TYPE_SPEC_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LIST_VALUE_FIELD_NUMBER
public static final int LIST_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TUPLE_VALUE_FIELD_NUMBER
public static final int TUPLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DICT_VALUE_FIELD_NUMBER
public static final int DICT_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAMED_TUPLE_VALUE_FIELD_NUMBER
public static final int NAMED_TUPLE_VALUE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getKindCase
public Struct.StructuredValue.KindCase getKindCase()
- Specified by:
getKindCasein interfaceStruct.StructuredValueOrBuilder
-
hasNoneValue
public boolean hasNoneValue()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
hasNoneValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the noneValue field is set.
-
getNoneValue
public Struct.NoneValue getNoneValue()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The noneValue.
-
getNoneValueOrBuilder
public Struct.NoneValueOrBuilder getNoneValueOrBuilder()
Represents None.
.tensorflow.NoneValue none_value = 1;- Specified by:
getNoneValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
getFloat64Value
public double getFloat64Value()
Represents a double-precision floating-point value (a Python `float`).
double float64_value = 11;- Specified by:
getFloat64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The float64Value.
-
getInt64Value
public long getInt64Value()
Represents a signed integer value, limited to 64 bits. Larger values from Python's arbitrary-precision integers are unsupported.
sint64 int64_value = 12;- Specified by:
getInt64Valuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The int64Value.
-
getStringValue
public java.lang.String getStringValue()
Represents a string of Unicode characters stored in a Python `str`. In Python 3, this is exactly what type `str` is. In Python 2, this is the UTF-8 encoding of the characters. For strings with ASCII characters only (as often used in TensorFlow code) there is effectively no difference between the language versions. The obsolescent `unicode` type of Python 2 is not supported here.
string string_value = 13;- Specified by:
getStringValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The stringValue.
-
getStringValueBytes
public com.google.protobuf.ByteString getStringValueBytes()
Represents a string of Unicode characters stored in a Python `str`. In Python 3, this is exactly what type `str` is. In Python 2, this is the UTF-8 encoding of the characters. For strings with ASCII characters only (as often used in TensorFlow code) there is effectively no difference between the language versions. The obsolescent `unicode` type of Python 2 is not supported here.
string string_value = 13;- Specified by:
getStringValueBytesin interfaceStruct.StructuredValueOrBuilder- Returns:
- The bytes for stringValue.
-
getBoolValue
public boolean getBoolValue()
Represents a boolean value.
bool bool_value = 14;- Specified by:
getBoolValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The boolValue.
-
hasTensorShapeValue
public boolean hasTensorShapeValue()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
hasTensorShapeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorShapeValue field is set.
-
getTensorShapeValue
public TensorShapeProto getTensorShapeValue()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorShapeValue.
-
getTensorShapeValueOrBuilder
public TensorShapeProtoOrBuilder getTensorShapeValueOrBuilder()
Represents a TensorShape.
.tensorflow.TensorShapeProto tensor_shape_value = 31;- Specified by:
getTensorShapeValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
getTensorDtypeValueValue
public int getTensorDtypeValueValue()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
getTensorDtypeValueValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The enum numeric value on the wire for tensorDtypeValue.
-
getTensorDtypeValue
public DataType getTensorDtypeValue()
Represents an enum value for dtype.
.tensorflow.DataType tensor_dtype_value = 32;- Specified by:
getTensorDtypeValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorDtypeValue.
-
hasTensorSpecValue
public boolean hasTensorSpecValue()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
hasTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tensorSpecValue field is set.
-
getTensorSpecValue
public Struct.TensorSpecProto getTensorSpecValue()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
getTensorSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tensorSpecValue.
-
getTensorSpecValueOrBuilder
public Struct.TensorSpecProtoOrBuilder getTensorSpecValueOrBuilder()
Represents a value for tf.TensorSpec.
.tensorflow.TensorSpecProto tensor_spec_value = 33;- Specified by:
getTensorSpecValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTypeSpecValue
public boolean hasTypeSpecValue()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
hasTypeSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the typeSpecValue field is set.
-
getTypeSpecValue
public Struct.TypeSpecProto getTypeSpecValue()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The typeSpecValue.
-
getTypeSpecValueOrBuilder
public Struct.TypeSpecProtoOrBuilder getTypeSpecValueOrBuilder()
Represents a value for tf.TypeSpec.
.tensorflow.TypeSpecProto type_spec_value = 34;- Specified by:
getTypeSpecValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasListValue
public boolean hasListValue()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
hasListValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the listValue field is set.
-
getListValue
public Struct.ListValue getListValue()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
getListValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The listValue.
-
getListValueOrBuilder
public Struct.ListValueOrBuilder getListValueOrBuilder()
Represents a list of `Value`.
.tensorflow.ListValue list_value = 51;- Specified by:
getListValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasTupleValue
public boolean hasTupleValue()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
hasTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the tupleValue field is set.
-
getTupleValue
public Struct.TupleValue getTupleValue()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
getTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The tupleValue.
-
getTupleValueOrBuilder
public Struct.TupleValueOrBuilder getTupleValueOrBuilder()
Represents a tuple of `Value`.
.tensorflow.TupleValue tuple_value = 52;- Specified by:
getTupleValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasDictValue
public boolean hasDictValue()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
hasDictValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the dictValue field is set.
-
getDictValue
public Struct.DictValue getDictValue()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
getDictValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The dictValue.
-
getDictValueOrBuilder
public Struct.DictValueOrBuilder getDictValueOrBuilder()
Represents a dict `Value`.
.tensorflow.DictValue dict_value = 53;- Specified by:
getDictValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
hasNamedTupleValue
public boolean hasNamedTupleValue()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
hasNamedTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- Whether the namedTupleValue field is set.
-
getNamedTupleValue
public Struct.NamedTupleValue getNamedTupleValue()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValuein interfaceStruct.StructuredValueOrBuilder- Returns:
- The namedTupleValue.
-
getNamedTupleValueOrBuilder
public Struct.NamedTupleValueOrBuilder getNamedTupleValueOrBuilder()
Represents Python's namedtuple.
.tensorflow.NamedTupleValue named_tuple_value = 54;- Specified by:
getNamedTupleValueOrBuilderin interfaceStruct.StructuredValueOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Struct.StructuredValue parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Struct.StructuredValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static Struct.StructuredValue parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static Struct.StructuredValue parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public Struct.StructuredValue.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Struct.StructuredValue.Builder newBuilder()
-
newBuilder
public static Struct.StructuredValue.Builder newBuilder(Struct.StructuredValue prototype)
-
toBuilder
public Struct.StructuredValue.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Struct.StructuredValue.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Struct.StructuredValue getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Struct.StructuredValue> parser()
-
getParserForType
public com.google.protobuf.Parser<Struct.StructuredValue> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Struct.StructuredValue getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-