Class ControlledMode.Builder (0.4.0)

public static final class ControlledMode.Builder extends GeneratedMessageV3.Builder<ControlledMode.Builder> implements ControlledModeOrBuilder

The options for receiver under the controlled mode.

Protobuf type google.cloud.visionai.v1.ControlledMode

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ControlledMode build()
Returns
Type Description
ControlledMode

buildPartial()

public ControlledMode buildPartial()
Returns
Type Description
ControlledMode

clear()

public ControlledMode.Builder clear()
Returns
Type Description
ControlledMode.Builder
Overrides

clearFallbackStartingOffset()

public ControlledMode.Builder clearFallbackStartingOffset()

This is the logical starting point to fallback upon should the specified starting offset be unavailable.

This can be one of the following values:

"begin": This will read from the earliest available message.

"end": This will read only future messages.

string fallback_starting_offset = 2;

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartingLogicalOffset()

public ControlledMode.Builder clearStartingLogicalOffset()

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

clearStartingOffset()

public ControlledMode.Builder clearStartingOffset()
Returns
Type Description
ControlledMode.Builder

clone()

public ControlledMode.Builder clone()
Returns
Type Description
ControlledMode.Builder
Overrides

getDefaultInstanceForType()

public ControlledMode getDefaultInstanceForType()
Returns
Type Description
ControlledMode

getDescriptorForType()

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

getFallbackStartingOffset()

public String getFallbackStartingOffset()

This is the logical starting point to fallback upon should the specified starting offset be unavailable.

This can be one of the following values:

"begin": This will read from the earliest available message.

"end": This will read only future messages.

string fallback_starting_offset = 2;

Returns
Type Description
String

The fallbackStartingOffset.

getFallbackStartingOffsetBytes()

public ByteString getFallbackStartingOffsetBytes()

This is the logical starting point to fallback upon should the specified starting offset be unavailable.

This can be one of the following values:

"begin": This will read from the earliest available message.

"end": This will read only future messages.

string fallback_starting_offset = 2;

Returns
Type Description
ByteString

The bytes for fallbackStartingOffset.

getStartingLogicalOffset()

public String getStartingLogicalOffset()

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Returns
Type Description
String

The startingLogicalOffset.

getStartingLogicalOffsetBytes()

public ByteString getStartingLogicalOffsetBytes()

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Returns
Type Description
ByteString

The bytes for startingLogicalOffset.

getStartingOffsetCase()

public ControlledMode.StartingOffsetCase getStartingOffsetCase()
Returns
Type Description
ControlledMode.StartingOffsetCase

hasStartingLogicalOffset()

public boolean hasStartingLogicalOffset()

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Returns
Type Description
boolean

Whether the startingLogicalOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ControlledMode other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setFallbackStartingOffset(String value)

public ControlledMode.Builder setFallbackStartingOffset(String value)

This is the logical starting point to fallback upon should the specified starting offset be unavailable.

This can be one of the following values:

"begin": This will read from the earliest available message.

"end": This will read only future messages.

string fallback_starting_offset = 2;

Parameter
Name Description
value String

The fallbackStartingOffset to set.

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

setFallbackStartingOffsetBytes(ByteString value)

public ControlledMode.Builder setFallbackStartingOffsetBytes(ByteString value)

This is the logical starting point to fallback upon should the specified starting offset be unavailable.

This can be one of the following values:

"begin": This will read from the earliest available message.

"end": This will read only future messages.

string fallback_starting_offset = 2;

Parameter
Name Description
value ByteString

The bytes for fallbackStartingOffset to set.

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartingLogicalOffset(String value)

public ControlledMode.Builder setStartingLogicalOffset(String value)

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Parameter
Name Description
value String

The startingLogicalOffset to set.

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

setStartingLogicalOffsetBytes(ByteString value)

public ControlledMode.Builder setStartingLogicalOffsetBytes(ByteString value)

This can be set to the following logical starting points:

"begin": This will read from the earliest available message.

"most-recent": This will read from the latest available message.

"end": This will read only future messages.

"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.

string starting_logical_offset = 1;

Parameter
Name Description
value ByteString

The bytes for startingLogicalOffset to set.

Returns
Type Description
ControlledMode.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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