Package inference
Class ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
inference.ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,ModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder,Cloneable
- Enclosing class:
ModelConfigOuterClass.ModelSequenceBatching.InitialState
public static final class ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
implements ModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder
@@ @@ .. cpp:var:: message InitialState @@ @@ Settings used to initialize data for implicit state. @@Protobuf type
inference.ModelSequenceBatching.InitialState-
Method Summary
Modifier and TypeMethodDescriptionaddAllDims(Iterable<? extends Long> values) @@ ..addDims(long value) @@ ..addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()@@ ..@@ ..@@ ..clearField(com.google.protobuf.Descriptors.FieldDescriptor field) @@ ..clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) @@ @@ ..clone()@@ ..com.google.protobuf.ByteString@@ ..@@ ..int@@ ..static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorlonggetDims(int index) @@ ..int@@ ..@@ ..getName()@@ ..com.google.protobuf.ByteString@@ ..boolean@@ @@ ..boolean@@ ..boolean@@ @@ ..protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setDataFile(String value) @@ ..setDataFileBytes(com.google.protobuf.ByteString value) @@ ..@@ ..setDataTypeValue(int value) @@ ..setDims(int index, long value) @@ ..@@ ..setNameBytes(com.google.protobuf.ByteString value) @@ ..setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setZeroData(boolean value) @@ @@ ..Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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<ModelConfigOuterClass.ModelSequenceBatching.InitialState.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<ModelConfigOuterClass.ModelSequenceBatching.InitialState.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<ModelConfigOuterClass.ModelSequenceBatching.InitialState.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<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
setField
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
clearField
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
clearOneof
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
setRepeatedField
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
addRepeatedField
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
mergeFrom
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
mergeFrom
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>- Throws:
IOException
-
getStateDataCase
- Specified by:
getStateDataCasein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder
-
clearStateData
-
getDataTypeValue
public int getDataTypeValue()@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the state. @@
.inference.DataType data_type = 1;- Specified by:
getDataTypeValuein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The enum numeric value on the wire for dataType.
-
setDataTypeValue
@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the state. @@
.inference.DataType data_type = 1;- Parameters:
value- The enum numeric value on the wire for dataType to set.- Returns:
- This builder for chaining.
-
getDataType
@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the state. @@
.inference.DataType data_type = 1;- Specified by:
getDataTypein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The dataType.
-
setDataType
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setDataType(ModelConfigOuterClass.DataType value) @@ .. cpp:var:: DataType data_type @@ @@ The data-type of the state. @@
.inference.DataType data_type = 1;- Parameters:
value- The dataType to set.- Returns:
- This builder for chaining.
-
clearDataType
@@ .. cpp:var:: DataType data_type @@ @@ The data-type of the state. @@
.inference.DataType data_type = 1;- Returns:
- This builder for chaining.
-
getDimsList
@@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Specified by:
getDimsListin interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- A list containing the dims.
-
getDimsCount
public int getDimsCount()@@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Specified by:
getDimsCountin interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The count of dims.
-
getDims
public long getDims(int index) @@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Specified by:
getDimsin interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dims at the given index.
-
setDims
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setDims(int index, long value) @@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Parameters:
index- The index to set the value at.value- The dims to set.- Returns:
- This builder for chaining.
-
addDims
@@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Parameters:
value- The dims to add.- Returns:
- This builder for chaining.
-
addAllDims
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder addAllDims(Iterable<? extends Long> values) @@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Parameters:
values- The dims to add.- Returns:
- This builder for chaining.
-
clearDims
@@ .. cpp:var:: int64 dims (repeated) @@ @@ The shape of the state tensor, not including the batch @@ dimension. @@
repeated int64 dims = 2;- Returns:
- This builder for chaining.
-
hasZeroData
public boolean hasZeroData()@@ @@ .. cpp:var:: bool zero_data @@ @@ The identifier for using zeros as initial state data. @@ Note that the value of 'zero_data' will not be checked, @@ instead, zero data will be used as long as the field is set. @@
bool zero_data = 3;- Specified by:
hasZeroDatain interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- Whether the zeroData field is set.
-
getZeroData
public boolean getZeroData()@@ @@ .. cpp:var:: bool zero_data @@ @@ The identifier for using zeros as initial state data. @@ Note that the value of 'zero_data' will not be checked, @@ instead, zero data will be used as long as the field is set. @@
bool zero_data = 3;- Specified by:
getZeroDatain interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The zeroData.
-
setZeroData
@@ @@ .. cpp:var:: bool zero_data @@ @@ The identifier for using zeros as initial state data. @@ Note that the value of 'zero_data' will not be checked, @@ instead, zero data will be used as long as the field is set. @@
bool zero_data = 3;- Parameters:
value- The zeroData to set.- Returns:
- This builder for chaining.
-
clearZeroData
@@ @@ .. cpp:var:: bool zero_data @@ @@ The identifier for using zeros as initial state data. @@ Note that the value of 'zero_data' will not be checked, @@ instead, zero data will be used as long as the field is set. @@
bool zero_data = 3;- Returns:
- This builder for chaining.
-
hasDataFile
public boolean hasDataFile()@@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Specified by:
hasDataFilein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- Whether the dataFile field is set.
-
getDataFile
@@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Specified by:
getDataFilein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The dataFile.
-
getDataFileBytes
public com.google.protobuf.ByteString getDataFileBytes()@@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Specified by:
getDataFileBytesin interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The bytes for dataFile.
-
setDataFile
@@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Parameters:
value- The dataFile to set.- Returns:
- This builder for chaining.
-
clearDataFile
@@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Returns:
- This builder for chaining.
-
setDataFileBytes
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setDataFileBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string data_file @@ @@ The file whose content will be used as the initial data for @@ the state in row-major order. The file must be provided in @@ sub-directory 'initial_state' under the model directory. @@
string data_file = 4;- Parameters:
value- The bytes for dataFile to set.- Returns:
- This builder for chaining.
-
getName
@@ .. cpp:var:: string name @@ @@ The name of the state initialization. @@
string name = 5;- Specified by:
getNamein interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()@@ .. cpp:var:: string name @@ @@ The name of the state initialization. @@
string name = 5;- Specified by:
getNameBytesin interfaceModelConfigOuterClass.ModelSequenceBatching.InitialStateOrBuilder- Returns:
- The bytes for name.
-
setName
@@ .. cpp:var:: string name @@ @@ The name of the state initialization. @@
string name = 5;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
@@ .. cpp:var:: string name @@ @@ The name of the state initialization. @@
string name = 5;- Returns:
- This builder for chaining.
-
setNameBytes
public ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setNameBytes(com.google.protobuf.ByteString value) @@ .. cpp:var:: string name @@ @@ The name of the state initialization. @@
string name = 5;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-
mergeUnknownFields
public final ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<ModelConfigOuterClass.ModelSequenceBatching.InitialState.Builder>
-