Package org.tensorflow.framework
Class CondContextDef.Builder
- java.lang.Object
-
- org.nd4j.shade.protobuf.AbstractMessageLite.Builder
-
- org.nd4j.shade.protobuf.AbstractMessage.Builder<BuilderType>
-
- org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
- org.tensorflow.framework.CondContextDef.Builder
-
- All Implemented Interfaces:
Cloneable,org.nd4j.shade.protobuf.Message.Builder,org.nd4j.shade.protobuf.MessageLite.Builder,org.nd4j.shade.protobuf.MessageLiteOrBuilder,org.nd4j.shade.protobuf.MessageOrBuilder,CondContextDefOrBuilder
- Enclosing class:
- CondContextDef
public static final class CondContextDef.Builder extends org.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder> implements CondContextDefOrBuilder
Protocol buffer representing a CondContext object.
Protobuf typetensorflow.CondContextDef
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CondContextDef.BuilderaddAllNestedContexts(Iterable<? extends ControlFlowContextDef> values)Contexts contained inside this context (e.g.CondContextDef.BuilderaddNestedContexts(int index, ControlFlowContextDef value)Contexts contained inside this context (e.g.CondContextDef.BuilderaddNestedContexts(int index, ControlFlowContextDef.Builder builderForValue)Contexts contained inside this context (e.g.CondContextDef.BuilderaddNestedContexts(ControlFlowContextDef value)Contexts contained inside this context (e.g.CondContextDef.BuilderaddNestedContexts(ControlFlowContextDef.Builder builderForValue)Contexts contained inside this context (e.g.ControlFlowContextDef.BuilderaddNestedContextsBuilder()Contexts contained inside this context (e.g.ControlFlowContextDef.BuilderaddNestedContextsBuilder(int index)Contexts contained inside this context (e.g.CondContextDef.BuilderaddRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)CondContextDefbuild()CondContextDefbuildPartial()CondContextDef.Builderclear()CondContextDef.BuilderclearBranch()Branch prediction.CondContextDef.BuilderclearContextName()Name of the context.CondContextDef.BuilderclearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)CondContextDef.BuilderclearNestedContexts()Contexts contained inside this context (e.g.CondContextDef.BuilderclearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)CondContextDef.BuilderclearPivotName()Name of the pivot tensor.CondContextDef.BuilderclearPredName()Name of the pred tensor.CondContextDef.BuilderclearValuesDef()Values and external values in control flow context.CondContextDef.Builderclone()intgetBranch()Branch prediction.StringgetContextName()Name of the context.org.nd4j.shade.protobuf.ByteStringgetContextNameBytes()Name of the context.CondContextDefgetDefaultInstanceForType()static org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptor()org.nd4j.shade.protobuf.Descriptors.DescriptorgetDescriptorForType()ControlFlowContextDefgetNestedContexts(int index)Contexts contained inside this context (e.g.ControlFlowContextDef.BuildergetNestedContextsBuilder(int index)Contexts contained inside this context (e.g.List<ControlFlowContextDef.Builder>getNestedContextsBuilderList()Contexts contained inside this context (e.g.intgetNestedContextsCount()Contexts contained inside this context (e.g.List<ControlFlowContextDef>getNestedContextsList()Contexts contained inside this context (e.g.ControlFlowContextDefOrBuildergetNestedContextsOrBuilder(int index)Contexts contained inside this context (e.g.List<? extends ControlFlowContextDefOrBuilder>getNestedContextsOrBuilderList()Contexts contained inside this context (e.g.StringgetPivotName()Name of the pivot tensor.org.nd4j.shade.protobuf.ByteStringgetPivotNameBytes()Name of the pivot tensor.StringgetPredName()Name of the pred tensor.org.nd4j.shade.protobuf.ByteStringgetPredNameBytes()Name of the pred tensor.ValuesDefgetValuesDef()Values and external values in control flow context.ValuesDef.BuildergetValuesDefBuilder()Values and external values in control flow context.ValuesDefOrBuildergetValuesDefOrBuilder()Values and external values in control flow context.booleanhasValuesDef()Values and external values in control flow context.protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()CondContextDef.BuildermergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry)CondContextDef.BuildermergeFrom(org.nd4j.shade.protobuf.Message other)CondContextDef.BuildermergeFrom(CondContextDef other)CondContextDef.BuildermergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)CondContextDef.BuildermergeValuesDef(ValuesDef value)Values and external values in control flow context.CondContextDef.BuilderremoveNestedContexts(int index)Contexts contained inside this context (e.g.CondContextDef.BuildersetBranch(int value)Branch prediction.CondContextDef.BuildersetContextName(String value)Name of the context.CondContextDef.BuildersetContextNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the context.CondContextDef.BuildersetField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)CondContextDef.BuildersetNestedContexts(int index, ControlFlowContextDef value)Contexts contained inside this context (e.g.CondContextDef.BuildersetNestedContexts(int index, ControlFlowContextDef.Builder builderForValue)Contexts contained inside this context (e.g.CondContextDef.BuildersetPivotName(String value)Name of the pivot tensor.CondContextDef.BuildersetPivotNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the pivot tensor.CondContextDef.BuildersetPredName(String value)Name of the pred tensor.CondContextDef.BuildersetPredNameBytes(org.nd4j.shade.protobuf.ByteString value)Name of the pred tensor.CondContextDef.BuildersetRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CondContextDef.BuildersetUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)CondContextDef.BuildersetValuesDef(ValuesDef value)Values and external values in control flow context.CondContextDef.BuildersetValuesDef(ValuesDef.Builder builderForValue)Values and external values in control flow context.-
Methods inherited from class org.nd4j.shade.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class org.nd4j.shade.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected org.nd4j.shade.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
clear
public CondContextDef.Builder clear()
- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clearin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clearin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
getDescriptorForType
public org.nd4j.shade.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
getDefaultInstanceForType
public CondContextDef getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfaceorg.nd4j.shade.protobuf.MessageOrBuilder
-
build
public CondContextDef build()
- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
buildPartial
public CondContextDef buildPartial()
- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
buildPartialin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder
-
clone
public CondContextDef.Builder clone()
- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
clonein interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
clonein classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
setField
public CondContextDef.Builder setField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
clearField
public CondContextDef.Builder clearField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
clearOneof
public CondContextDef.Builder clearOneof(org.nd4j.shade.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
clearOneofin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
setRepeatedField
public CondContextDef.Builder setRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
addRepeatedField
public CondContextDef.Builder addRepeatedField(org.nd4j.shade.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
mergeFrom
public CondContextDef.Builder mergeFrom(org.nd4j.shade.protobuf.Message other)
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<CondContextDef.Builder>
-
mergeFrom
public CondContextDef.Builder mergeFrom(CondContextDef other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfaceorg.nd4j.shade.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
mergeFrom
public CondContextDef.Builder mergeFrom(org.nd4j.shade.protobuf.CodedInputStream input, org.nd4j.shade.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.Message.Builder- Specified by:
mergeFromin interfaceorg.nd4j.shade.protobuf.MessageLite.Builder- Overrides:
mergeFromin classorg.nd4j.shade.protobuf.AbstractMessage.Builder<CondContextDef.Builder>- Throws:
IOException
-
getContextName
public String getContextName()
Name of the context.
string context_name = 1;- Specified by:
getContextNamein interfaceCondContextDefOrBuilder- Returns:
- The contextName.
-
getContextNameBytes
public org.nd4j.shade.protobuf.ByteString getContextNameBytes()
Name of the context.
string context_name = 1;- Specified by:
getContextNameBytesin interfaceCondContextDefOrBuilder- Returns:
- The bytes for contextName.
-
setContextName
public CondContextDef.Builder setContextName(String value)
Name of the context.
string context_name = 1;- Parameters:
value- The contextName to set.- Returns:
- This builder for chaining.
-
clearContextName
public CondContextDef.Builder clearContextName()
Name of the context.
string context_name = 1;- Returns:
- This builder for chaining.
-
setContextNameBytes
public CondContextDef.Builder setContextNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the context.
string context_name = 1;- Parameters:
value- The bytes for contextName to set.- Returns:
- This builder for chaining.
-
getPredName
public String getPredName()
Name of the pred tensor.
string pred_name = 2;- Specified by:
getPredNamein interfaceCondContextDefOrBuilder- Returns:
- The predName.
-
getPredNameBytes
public org.nd4j.shade.protobuf.ByteString getPredNameBytes()
Name of the pred tensor.
string pred_name = 2;- Specified by:
getPredNameBytesin interfaceCondContextDefOrBuilder- Returns:
- The bytes for predName.
-
setPredName
public CondContextDef.Builder setPredName(String value)
Name of the pred tensor.
string pred_name = 2;- Parameters:
value- The predName to set.- Returns:
- This builder for chaining.
-
clearPredName
public CondContextDef.Builder clearPredName()
Name of the pred tensor.
string pred_name = 2;- Returns:
- This builder for chaining.
-
setPredNameBytes
public CondContextDef.Builder setPredNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the pred tensor.
string pred_name = 2;- Parameters:
value- The bytes for predName to set.- Returns:
- This builder for chaining.
-
getPivotName
public String getPivotName()
Name of the pivot tensor.
string pivot_name = 3;- Specified by:
getPivotNamein interfaceCondContextDefOrBuilder- Returns:
- The pivotName.
-
getPivotNameBytes
public org.nd4j.shade.protobuf.ByteString getPivotNameBytes()
Name of the pivot tensor.
string pivot_name = 3;- Specified by:
getPivotNameBytesin interfaceCondContextDefOrBuilder- Returns:
- The bytes for pivotName.
-
setPivotName
public CondContextDef.Builder setPivotName(String value)
Name of the pivot tensor.
string pivot_name = 3;- Parameters:
value- The pivotName to set.- Returns:
- This builder for chaining.
-
clearPivotName
public CondContextDef.Builder clearPivotName()
Name of the pivot tensor.
string pivot_name = 3;- Returns:
- This builder for chaining.
-
setPivotNameBytes
public CondContextDef.Builder setPivotNameBytes(org.nd4j.shade.protobuf.ByteString value)
Name of the pivot tensor.
string pivot_name = 3;- Parameters:
value- The bytes for pivotName to set.- Returns:
- This builder for chaining.
-
getBranch
public int getBranch()
Branch prediction. 0 or 1.
int32 branch = 4;- Specified by:
getBranchin interfaceCondContextDefOrBuilder- Returns:
- The branch.
-
setBranch
public CondContextDef.Builder setBranch(int value)
Branch prediction. 0 or 1.
int32 branch = 4;- Parameters:
value- The branch to set.- Returns:
- This builder for chaining.
-
clearBranch
public CondContextDef.Builder clearBranch()
Branch prediction. 0 or 1.
int32 branch = 4;- Returns:
- This builder for chaining.
-
hasValuesDef
public boolean hasValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;- Specified by:
hasValuesDefin interfaceCondContextDefOrBuilder- Returns:
- Whether the valuesDef field is set.
-
getValuesDef
public ValuesDef getValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;- Specified by:
getValuesDefin interfaceCondContextDefOrBuilder- Returns:
- The valuesDef.
-
setValuesDef
public CondContextDef.Builder setValuesDef(ValuesDef value)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;
-
setValuesDef
public CondContextDef.Builder setValuesDef(ValuesDef.Builder builderForValue)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;
-
mergeValuesDef
public CondContextDef.Builder mergeValuesDef(ValuesDef value)
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;
-
clearValuesDef
public CondContextDef.Builder clearValuesDef()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;
-
getValuesDefBuilder
public ValuesDef.Builder getValuesDefBuilder()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;
-
getValuesDefOrBuilder
public ValuesDefOrBuilder getValuesDefOrBuilder()
Values and external values in control flow context.
.tensorflow.ValuesDef values_def = 5;- Specified by:
getValuesDefOrBuilderin interfaceCondContextDefOrBuilder
-
getNestedContextsList
public List<ControlFlowContextDef> getNestedContextsList()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;- Specified by:
getNestedContextsListin interfaceCondContextDefOrBuilder
-
getNestedContextsCount
public int getNestedContextsCount()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;- Specified by:
getNestedContextsCountin interfaceCondContextDefOrBuilder
-
getNestedContexts
public ControlFlowContextDef getNestedContexts(int index)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;- Specified by:
getNestedContextsin interfaceCondContextDefOrBuilder
-
setNestedContexts
public CondContextDef.Builder setNestedContexts(int index, ControlFlowContextDef value)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
setNestedContexts
public CondContextDef.Builder setNestedContexts(int index, ControlFlowContextDef.Builder builderForValue)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addNestedContexts
public CondContextDef.Builder addNestedContexts(ControlFlowContextDef value)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addNestedContexts
public CondContextDef.Builder addNestedContexts(int index, ControlFlowContextDef value)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addNestedContexts
public CondContextDef.Builder addNestedContexts(ControlFlowContextDef.Builder builderForValue)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addNestedContexts
public CondContextDef.Builder addNestedContexts(int index, ControlFlowContextDef.Builder builderForValue)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addAllNestedContexts
public CondContextDef.Builder addAllNestedContexts(Iterable<? extends ControlFlowContextDef> values)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
clearNestedContexts
public CondContextDef.Builder clearNestedContexts()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
removeNestedContexts
public CondContextDef.Builder removeNestedContexts(int index)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
getNestedContextsBuilder
public ControlFlowContextDef.Builder getNestedContextsBuilder(int index)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
getNestedContextsOrBuilder
public ControlFlowContextDefOrBuilder getNestedContextsOrBuilder(int index)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;- Specified by:
getNestedContextsOrBuilderin interfaceCondContextDefOrBuilder
-
getNestedContextsOrBuilderList
public List<? extends ControlFlowContextDefOrBuilder> getNestedContextsOrBuilderList()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;- Specified by:
getNestedContextsOrBuilderListin interfaceCondContextDefOrBuilder
-
addNestedContextsBuilder
public ControlFlowContextDef.Builder addNestedContextsBuilder()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
addNestedContextsBuilder
public ControlFlowContextDef.Builder addNestedContextsBuilder(int index)
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
getNestedContextsBuilderList
public List<ControlFlowContextDef.Builder> getNestedContextsBuilderList()
Contexts contained inside this context (e.g. nested conds).
repeated .tensorflow.ControlFlowContextDef nested_contexts = 6;
-
setUnknownFields
public final CondContextDef.Builder setUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
mergeUnknownFields
public final CondContextDef.Builder mergeUnknownFields(org.nd4j.shade.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfaceorg.nd4j.shade.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classorg.nd4j.shade.protobuf.GeneratedMessageV3.Builder<CondContextDef.Builder>
-
-