Class AnalyzerDefinition.StreamInput.Builder (0.12.0)

public static final class AnalyzerDefinition.StreamInput.Builder extends GeneratedMessageV3.Builder<AnalyzerDefinition.StreamInput.Builder> implements AnalyzerDefinition.StreamInputOrBuilder

The inputs to this analyzer.

We accept input name references of the following form: <analyzer-name>:<output-argument-name>

Example:

Suppose you had an operator named "SomeOp" that has 2 output arguments, the first of which is named "foo" and the second of which is named "bar", and an operator named "MyOp" that accepts 2 inputs.

Also suppose that there is an analyzer named "some-analyzer" that is running "SomeOp" and another analyzer named "my-analyzer" running "MyOp".

To indicate that "my-analyzer" is to consume "some-analyzer"'s "foo" output as its first input and "some-analyzer"'s "bar" output as its second input, you can set this field to the following: input = ["some-analyzer:foo", "some-analyzer:bar"]

Protobuf type google.cloud.visionai.v1.AnalyzerDefinition.StreamInput

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerDefinition.StreamInput.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

build()

public AnalyzerDefinition.StreamInput build()
Returns
Type Description
AnalyzerDefinition.StreamInput

buildPartial()

public AnalyzerDefinition.StreamInput buildPartial()
Returns
Type Description
AnalyzerDefinition.StreamInput

clear()

public AnalyzerDefinition.StreamInput.Builder clear()
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public AnalyzerDefinition.StreamInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

clearInput()

public AnalyzerDefinition.StreamInput.Builder clearInput()

The name of the stream input (as discussed above).

string input = 1;

Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public AnalyzerDefinition.StreamInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

clone()

public AnalyzerDefinition.StreamInput.Builder clone()
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

getDefaultInstanceForType()

public AnalyzerDefinition.StreamInput getDefaultInstanceForType()
Returns
Type Description
AnalyzerDefinition.StreamInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInput()

public String getInput()

The name of the stream input (as discussed above).

string input = 1;

Returns
Type Description
String

The input.

getInputBytes()

public ByteString getInputBytes()

The name of the stream input (as discussed above).

string input = 1;

Returns
Type Description
ByteString

The bytes for input.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AnalyzerDefinition.StreamInput other)

public AnalyzerDefinition.StreamInput.Builder mergeFrom(AnalyzerDefinition.StreamInput other)
Parameter
Name Description
other AnalyzerDefinition.StreamInput
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AnalyzerDefinition.StreamInput.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AnalyzerDefinition.StreamInput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerDefinition.StreamInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public AnalyzerDefinition.StreamInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

setInput(String value)

public AnalyzerDefinition.StreamInput.Builder setInput(String value)

The name of the stream input (as discussed above).

string input = 1;

Parameter
Name Description
value String

The input to set.

Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

This builder for chaining.

setInputBytes(ByteString value)

public AnalyzerDefinition.StreamInput.Builder setInputBytes(ByteString value)

The name of the stream input (as discussed above).

string input = 1;

Parameter
Name Description
value ByteString

The bytes for input to set.

Returns
Type Description
AnalyzerDefinition.StreamInput.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AnalyzerDefinition.StreamInput.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AnalyzerDefinition.StreamInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
AnalyzerDefinition.StreamInput.Builder
Overrides