Package tensorflow
Class Struct.TypeSpecProto.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
tensorflow.Struct.TypeSpecProto.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.TypeSpecProtoOrBuilder
- Enclosing class:
- Struct.TypeSpecProto
public static final class Struct.TypeSpecProto.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder> implements Struct.TypeSpecProtoOrBuilder
Represents a tf.TypeSpecProtobuf type
tensorflow.TypeSpecProto-
Method Summary
Modifier and Type Method Description Struct.TypeSpecProto.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Struct.TypeSpecProtobuild()Struct.TypeSpecProtobuildPartial()Struct.TypeSpecProto.Builderclear()Struct.TypeSpecProto.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Struct.TypeSpecProto.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Struct.TypeSpecProto.BuilderclearTypeSpecClass().tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;Struct.TypeSpecProto.BuilderclearTypeSpecClassName()This is currently redundant with the type_spec_class enum, and is only used for error reporting.Struct.TypeSpecProto.BuilderclearTypeState()The value returned by TypeSpec._serialize().Struct.TypeSpecProto.Builderclone()Struct.TypeSpecProtogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Struct.TypeSpecProto.TypeSpecClassgetTypeSpecClass().tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;java.lang.StringgetTypeSpecClassName()This is currently redundant with the type_spec_class enum, and is only used for error reporting.com.google.protobuf.ByteStringgetTypeSpecClassNameBytes()This is currently redundant with the type_spec_class enum, and is only used for error reporting.intgetTypeSpecClassValue().tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;Struct.StructuredValuegetTypeState()The value returned by TypeSpec._serialize().Struct.StructuredValue.BuildergetTypeStateBuilder()The value returned by TypeSpec._serialize().Struct.StructuredValueOrBuildergetTypeStateOrBuilder()The value returned by TypeSpec._serialize().booleanhasTypeState()The value returned by TypeSpec._serialize().protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()Struct.TypeSpecProto.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Struct.TypeSpecProto.BuildermergeFrom(com.google.protobuf.Message other)Struct.TypeSpecProto.BuildermergeFrom(Struct.TypeSpecProto other)Struct.TypeSpecProto.BuildermergeTypeState(Struct.StructuredValue value)The value returned by TypeSpec._serialize().Struct.TypeSpecProto.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Struct.TypeSpecProto.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)Struct.TypeSpecProto.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)Struct.TypeSpecProto.BuildersetTypeSpecClass(Struct.TypeSpecProto.TypeSpecClass value).tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;Struct.TypeSpecProto.BuildersetTypeSpecClassName(java.lang.String value)This is currently redundant with the type_spec_class enum, and is only used for error reporting.Struct.TypeSpecProto.BuildersetTypeSpecClassNameBytes(com.google.protobuf.ByteString value)This is currently redundant with the type_spec_class enum, and is only used for error reporting.Struct.TypeSpecProto.BuildersetTypeSpecClassValue(int value).tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;Struct.TypeSpecProto.BuildersetTypeState(Struct.StructuredValue value)The value returned by TypeSpec._serialize().Struct.TypeSpecProto.BuildersetTypeState(Struct.StructuredValue.Builder builderForValue)The value returned by TypeSpec._serialize().Struct.TypeSpecProto.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, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
Method Details
-
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.Builder<Struct.TypeSpecProto.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.TypeSpecProto.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.TypeSpecProto.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.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.TypeSpecProto.Builder>
-
setField
public Struct.TypeSpecProto.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.TypeSpecProto.Builder>
-
clearField
public Struct.TypeSpecProto.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
-
clearOneof
public Struct.TypeSpecProto.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
-
setRepeatedField
public Struct.TypeSpecProto.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.TypeSpecProto.Builder>
-
addRepeatedField
public Struct.TypeSpecProto.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.TypeSpecProto.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Struct.TypeSpecProto.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
-
mergeFrom
public Struct.TypeSpecProto.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.TypeSpecProto.Builder>- Throws:
java.io.IOException
-
getTypeSpecClassValue
public int getTypeSpecClassValue().tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Specified by:
getTypeSpecClassValuein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The enum numeric value on the wire for typeSpecClass.
-
setTypeSpecClassValue
.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Parameters:
value- The enum numeric value on the wire for typeSpecClass to set.- Returns:
- This builder for chaining.
-
getTypeSpecClass
.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Specified by:
getTypeSpecClassin interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The typeSpecClass.
-
setTypeSpecClass
.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Parameters:
value- The typeSpecClass to set.- Returns:
- This builder for chaining.
-
clearTypeSpecClass
.tensorflow.TypeSpecProto.TypeSpecClass type_spec_class = 1;- Returns:
- This builder for chaining.
-
hasTypeState
public boolean hasTypeState()The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
hasTypeStatein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- Whether the typeState field is set.
-
getTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
getTypeStatein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The typeState.
-
setTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2; -
setTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2; -
mergeTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2; -
clearTypeState
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2; -
getTypeStateBuilder
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2; -
getTypeStateOrBuilder
The value returned by TypeSpec._serialize().
.tensorflow.StructuredValue type_state = 2;- Specified by:
getTypeStateOrBuilderin interfaceStruct.TypeSpecProtoOrBuilder
-
getTypeSpecClassName
public java.lang.String getTypeSpecClassName()This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.
string type_spec_class_name = 3;- Specified by:
getTypeSpecClassNamein interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The typeSpecClassName.
-
getTypeSpecClassNameBytes
public com.google.protobuf.ByteString getTypeSpecClassNameBytes()This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.
string type_spec_class_name = 3;- Specified by:
getTypeSpecClassNameBytesin interfaceStruct.TypeSpecProtoOrBuilder- Returns:
- The bytes for typeSpecClassName.
-
setTypeSpecClassName
This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.
string type_spec_class_name = 3;- Parameters:
value- The typeSpecClassName to set.- Returns:
- This builder for chaining.
-
clearTypeSpecClassName
This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.
string type_spec_class_name = 3;- Returns:
- This builder for chaining.
-
setTypeSpecClassNameBytes
public Struct.TypeSpecProto.Builder setTypeSpecClassNameBytes(com.google.protobuf.ByteString value)This is currently redundant with the type_spec_class enum, and is only used for error reporting. In particular, if you use an older binary to load a newer model, and the model uses a TypeSpecClass that the older binary doesn't support, then this lets us display a useful error message.
string type_spec_class_name = 3;- Parameters:
value- The bytes for typeSpecClassName to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Struct.TypeSpecProto.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
-
mergeUnknownFields
public final Struct.TypeSpecProto.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Struct.TypeSpecProto.Builder>
-