Class RequestMetadata.Builder (0.12.0)

public static final class RequestMetadata.Builder extends GeneratedMessageV3.Builder<RequestMetadata.Builder> implements RequestMetadataOrBuilder

RequestMetadata is the metadata message for the request.

Protobuf type google.cloud.visionai.v1.RequestMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RequestMetadata build()
Returns
Type Description
RequestMetadata

buildPartial()

public RequestMetadata buildPartial()
Returns
Type Description
RequestMetadata

clear()

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

clearEvent()

public RequestMetadata.Builder clearEvent()

Evevt name.

string event = 2;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLeaseId()

public RequestMetadata.Builder clearLeaseId()

Lease id.

string lease_id = 4;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearLeaseTerm()

public RequestMetadata.Builder clearLeaseTerm()

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Returns
Type Description
RequestMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOwner()

public RequestMetadata.Builder clearOwner()

Owner name.

string owner = 5;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearSeries()

public RequestMetadata.Builder clearSeries()

Series name.

string series = 3;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearStream()

public RequestMetadata.Builder clearStream()

Stream name.

string stream = 1;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RequestMetadata getDefaultInstanceForType()
Returns
Type Description
RequestMetadata

getDescriptorForType()

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

getEvent()

public String getEvent()

Evevt name.

string event = 2;

Returns
Type Description
String

The event.

getEventBytes()

public ByteString getEventBytes()

Evevt name.

string event = 2;

Returns
Type Description
ByteString

The bytes for event.

getLeaseId()

public String getLeaseId()

Lease id.

string lease_id = 4;

Returns
Type Description
String

The leaseId.

getLeaseIdBytes()

public ByteString getLeaseIdBytes()

Lease id.

string lease_id = 4;

Returns
Type Description
ByteString

The bytes for leaseId.

getLeaseTerm()

public Duration getLeaseTerm()

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Returns
Type Description
Duration

The leaseTerm.

getLeaseTermBuilder()

public Duration.Builder getLeaseTermBuilder()

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Returns
Type Description
Builder

getLeaseTermOrBuilder()

public DurationOrBuilder getLeaseTermOrBuilder()

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Returns
Type Description
DurationOrBuilder

getOwner()

public String getOwner()

Owner name.

string owner = 5;

Returns
Type Description
String

The owner.

getOwnerBytes()

public ByteString getOwnerBytes()

Owner name.

string owner = 5;

Returns
Type Description
ByteString

The bytes for owner.

getSeries()

public String getSeries()

Series name.

string series = 3;

Returns
Type Description
String

The series.

getSeriesBytes()

public ByteString getSeriesBytes()

Series name.

string series = 3;

Returns
Type Description
ByteString

The bytes for series.

getStream()

public String getStream()

Stream name.

string stream = 1;

Returns
Type Description
String

The stream.

getStreamBytes()

public ByteString getStreamBytes()

Stream name.

string stream = 1;

Returns
Type Description
ByteString

The bytes for stream.

hasLeaseTerm()

public boolean hasLeaseTerm()

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Returns
Type Description
boolean

Whether the leaseTerm field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RequestMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLeaseTerm(Duration value)

public RequestMetadata.Builder mergeLeaseTerm(Duration value)

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Parameter
Name Description
value Duration
Returns
Type Description
RequestMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEvent(String value)

public RequestMetadata.Builder setEvent(String value)

Evevt name.

string event = 2;

Parameter
Name Description
value String

The event to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setEventBytes(ByteString value)

public RequestMetadata.Builder setEventBytes(ByteString value)

Evevt name.

string event = 2;

Parameter
Name Description
value ByteString

The bytes for event to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLeaseId(String value)

public RequestMetadata.Builder setLeaseId(String value)

Lease id.

string lease_id = 4;

Parameter
Name Description
value String

The leaseId to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setLeaseIdBytes(ByteString value)

public RequestMetadata.Builder setLeaseIdBytes(ByteString value)

Lease id.

string lease_id = 4;

Parameter
Name Description
value ByteString

The bytes for leaseId to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setLeaseTerm(Duration value)

public RequestMetadata.Builder setLeaseTerm(Duration value)

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Parameter
Name Description
value Duration
Returns
Type Description
RequestMetadata.Builder

setLeaseTerm(Duration.Builder builderForValue)

public RequestMetadata.Builder setLeaseTerm(Duration.Builder builderForValue)

Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.

.google.protobuf.Duration lease_term = 6;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RequestMetadata.Builder

setOwner(String value)

public RequestMetadata.Builder setOwner(String value)

Owner name.

string owner = 5;

Parameter
Name Description
value String

The owner to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setOwnerBytes(ByteString value)

public RequestMetadata.Builder setOwnerBytes(ByteString value)

Owner name.

string owner = 5;

Parameter
Name Description
value ByteString

The bytes for owner to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

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

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

setSeries(String value)

public RequestMetadata.Builder setSeries(String value)

Series name.

string series = 3;

Parameter
Name Description
value String

The series to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setSeriesBytes(ByteString value)

public RequestMetadata.Builder setSeriesBytes(ByteString value)

Series name.

string series = 3;

Parameter
Name Description
value ByteString

The bytes for series to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setStream(String value)

public RequestMetadata.Builder setStream(String value)

Stream name.

string stream = 1;

Parameter
Name Description
value String

The stream to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setStreamBytes(ByteString value)

public RequestMetadata.Builder setStreamBytes(ByteString value)

Stream name.

string stream = 1;

Parameter
Name Description
value ByteString

The bytes for stream to set.

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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