Package tensorflow.serving
Class InputOuterClass.ExampleListWithContext.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
- tensorflow.serving.InputOuterClass.ExampleListWithContext.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,InputOuterClass.ExampleListWithContextOrBuilder
- Enclosing class:
- InputOuterClass.ExampleListWithContext
public static final class InputOuterClass.ExampleListWithContext.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder> implements InputOuterClass.ExampleListWithContextOrBuilder
Specifies one or more independent input Examples, with a common context Example. The common use case for context is to cleanly and optimally specify some features that are common across multiple examples. See example below with a search query as the context and multiple restaurants to perform some inference on. context: { features: { feature: { key : "query" value: { bytes_list: { value: [ "pizza" ] } } } } } examples: { features: { feature: { key : "cuisine" value: { bytes_list: { value: [ "Pizzeria" ] } } } } } examples: { features: { feature: { key : "cuisine" value: { bytes_list: { value: [ "Taqueria" ] } } } } } Implementations of ExampleListWithContext merge the context Example into each of the Examples. Note that feature keys must not be duplicated between the Examples and context Example, or the behavior is undefined. See also: tensorflow/core/example/example.proto https://developers.google.com/protocol-buffers/docs/proto3#mapsProtobuf typetensorflow.serving.ExampleListWithContext
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description InputOuterClass.ExampleListWithContext.BuilderaddAllExamples(java.lang.Iterable<? extends Example> values)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderaddExamples(int index, Example value)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderaddExamples(int index, Example.Builder builderForValue)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderaddExamples(Example value)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderaddExamples(Example.Builder builderForValue)repeated .tensorflow.Example examples = 1;Example.BuilderaddExamplesBuilder()repeated .tensorflow.Example examples = 1;Example.BuilderaddExamplesBuilder(int index)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)InputOuterClass.ExampleListWithContextbuild()InputOuterClass.ExampleListWithContextbuildPartial()InputOuterClass.ExampleListWithContext.Builderclear()InputOuterClass.ExampleListWithContext.BuilderclearContext().tensorflow.Example context = 2;InputOuterClass.ExampleListWithContext.BuilderclearExamples()repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)InputOuterClass.ExampleListWithContext.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)InputOuterClass.ExampleListWithContext.Builderclone()ExamplegetContext().tensorflow.Example context = 2;Example.BuildergetContextBuilder().tensorflow.Example context = 2;ExampleOrBuildergetContextOrBuilder().tensorflow.Example context = 2;InputOuterClass.ExampleListWithContextgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ExamplegetExamples(int index)repeated .tensorflow.Example examples = 1;Example.BuildergetExamplesBuilder(int index)repeated .tensorflow.Example examples = 1;java.util.List<Example.Builder>getExamplesBuilderList()repeated .tensorflow.Example examples = 1;intgetExamplesCount()repeated .tensorflow.Example examples = 1;java.util.List<Example>getExamplesList()repeated .tensorflow.Example examples = 1;ExampleOrBuildergetExamplesOrBuilder(int index)repeated .tensorflow.Example examples = 1;java.util.List<? extends ExampleOrBuilder>getExamplesOrBuilderList()repeated .tensorflow.Example examples = 1;booleanhasContext().tensorflow.Example context = 2;protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()InputOuterClass.ExampleListWithContext.BuildermergeContext(Example value).tensorflow.Example context = 2;InputOuterClass.ExampleListWithContext.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)InputOuterClass.ExampleListWithContext.BuildermergeFrom(com.google.protobuf.Message other)InputOuterClass.ExampleListWithContext.BuildermergeFrom(InputOuterClass.ExampleListWithContext other)InputOuterClass.ExampleListWithContext.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)InputOuterClass.ExampleListWithContext.BuilderremoveExamples(int index)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuildersetContext(Example value).tensorflow.Example context = 2;InputOuterClass.ExampleListWithContext.BuildersetContext(Example.Builder builderForValue).tensorflow.Example context = 2;InputOuterClass.ExampleListWithContext.BuildersetExamples(int index, Example value)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuildersetExamples(int index, Example.Builder builderForValue)repeated .tensorflow.Example examples = 1;InputOuterClass.ExampleListWithContext.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)InputOuterClass.ExampleListWithContext.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)InputOuterClass.ExampleListWithContext.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, 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()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
clear
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>
-
getDefaultInstanceForType
public InputOuterClass.ExampleListWithContext getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public InputOuterClass.ExampleListWithContext build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public InputOuterClass.ExampleListWithContext buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>
-
setField
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>
-
clearField
public InputOuterClass.ExampleListWithContext.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
clearOneof
public InputOuterClass.ExampleListWithContext.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
setRepeatedField
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>
-
addRepeatedField
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>
-
mergeFrom
public InputOuterClass.ExampleListWithContext.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
mergeFrom
public InputOuterClass.ExampleListWithContext.Builder mergeFrom(InputOuterClass.ExampleListWithContext other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
mergeFrom
public InputOuterClass.ExampleListWithContext.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<InputOuterClass.ExampleListWithContext.Builder>- Throws:
java.io.IOException
-
getExamplesList
public java.util.List<Example> getExamplesList()
repeated .tensorflow.Example examples = 1;- Specified by:
getExamplesListin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
getExamplesCount
public int getExamplesCount()
repeated .tensorflow.Example examples = 1;- Specified by:
getExamplesCountin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
getExamples
public Example getExamples(int index)
repeated .tensorflow.Example examples = 1;- Specified by:
getExamplesin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
setExamples
public InputOuterClass.ExampleListWithContext.Builder setExamples(int index, Example value)
repeated .tensorflow.Example examples = 1;
-
setExamples
public InputOuterClass.ExampleListWithContext.Builder setExamples(int index, Example.Builder builderForValue)
repeated .tensorflow.Example examples = 1;
-
addExamples
public InputOuterClass.ExampleListWithContext.Builder addExamples(Example value)
repeated .tensorflow.Example examples = 1;
-
addExamples
public InputOuterClass.ExampleListWithContext.Builder addExamples(int index, Example value)
repeated .tensorflow.Example examples = 1;
-
addExamples
public InputOuterClass.ExampleListWithContext.Builder addExamples(Example.Builder builderForValue)
repeated .tensorflow.Example examples = 1;
-
addExamples
public InputOuterClass.ExampleListWithContext.Builder addExamples(int index, Example.Builder builderForValue)
repeated .tensorflow.Example examples = 1;
-
addAllExamples
public InputOuterClass.ExampleListWithContext.Builder addAllExamples(java.lang.Iterable<? extends Example> values)
repeated .tensorflow.Example examples = 1;
-
clearExamples
public InputOuterClass.ExampleListWithContext.Builder clearExamples()
repeated .tensorflow.Example examples = 1;
-
removeExamples
public InputOuterClass.ExampleListWithContext.Builder removeExamples(int index)
repeated .tensorflow.Example examples = 1;
-
getExamplesBuilder
public Example.Builder getExamplesBuilder(int index)
repeated .tensorflow.Example examples = 1;
-
getExamplesOrBuilder
public ExampleOrBuilder getExamplesOrBuilder(int index)
repeated .tensorflow.Example examples = 1;- Specified by:
getExamplesOrBuilderin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
getExamplesOrBuilderList
public java.util.List<? extends ExampleOrBuilder> getExamplesOrBuilderList()
repeated .tensorflow.Example examples = 1;- Specified by:
getExamplesOrBuilderListin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
addExamplesBuilder
public Example.Builder addExamplesBuilder()
repeated .tensorflow.Example examples = 1;
-
addExamplesBuilder
public Example.Builder addExamplesBuilder(int index)
repeated .tensorflow.Example examples = 1;
-
getExamplesBuilderList
public java.util.List<Example.Builder> getExamplesBuilderList()
repeated .tensorflow.Example examples = 1;
-
hasContext
public boolean hasContext()
.tensorflow.Example context = 2;- Specified by:
hasContextin interfaceInputOuterClass.ExampleListWithContextOrBuilder- Returns:
- Whether the context field is set.
-
getContext
public Example getContext()
.tensorflow.Example context = 2;- Specified by:
getContextin interfaceInputOuterClass.ExampleListWithContextOrBuilder- Returns:
- The context.
-
setContext
public InputOuterClass.ExampleListWithContext.Builder setContext(Example value)
.tensorflow.Example context = 2;
-
setContext
public InputOuterClass.ExampleListWithContext.Builder setContext(Example.Builder builderForValue)
.tensorflow.Example context = 2;
-
mergeContext
public InputOuterClass.ExampleListWithContext.Builder mergeContext(Example value)
.tensorflow.Example context = 2;
-
clearContext
public InputOuterClass.ExampleListWithContext.Builder clearContext()
.tensorflow.Example context = 2;
-
getContextBuilder
public Example.Builder getContextBuilder()
.tensorflow.Example context = 2;
-
getContextOrBuilder
public ExampleOrBuilder getContextOrBuilder()
.tensorflow.Example context = 2;- Specified by:
getContextOrBuilderin interfaceInputOuterClass.ExampleListWithContextOrBuilder
-
setUnknownFields
public final InputOuterClass.ExampleListWithContext.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
mergeUnknownFields
public final InputOuterClass.ExampleListWithContext.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<InputOuterClass.ExampleListWithContext.Builder>
-
-