Class RequestMetadata.Builder (0.33.0)

publicstaticfinalclass RequestMetadata.BuilderextendsGeneratedMessageV3.Builder<RequestMetadata.Builder>implementsRequestMetadataOrBuilder

RequestMetadata is the metadata message for the request.

Protobuf type google.cloud.visionai.v1.RequestMetadata

Inherited Members

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

publicRequestMetadata.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RequestMetadata.Builder
Overrides

build()

publicRequestMetadatabuild()
Returns
Type Description
RequestMetadata

buildPartial()

publicRequestMetadatabuildPartial()
Returns
Type Description
RequestMetadata

clear()

publicRequestMetadata.Builderclear()
Returns
Type Description
RequestMetadata.Builder
Overrides

clearEvent()

publicRequestMetadata.BuilderclearEvent()

Evevt name.

string event = 2;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

publicRequestMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RequestMetadata.Builder
Overrides

clearLeaseId()

publicRequestMetadata.BuilderclearLeaseId()

Lease id.

string lease_id = 4;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearLeaseTerm()

publicRequestMetadata.BuilderclearLeaseTerm()

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)

publicRequestMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RequestMetadata.Builder
Overrides

clearOwner()

publicRequestMetadata.BuilderclearOwner()

Owner name.

string owner = 5;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearSeries()

publicRequestMetadata.BuilderclearSeries()

Series name.

string series = 3;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clearStream()

publicRequestMetadata.BuilderclearStream()

Stream name.

string stream = 1;

Returns
Type Description
RequestMetadata.Builder

This builder for chaining.

clone()

publicRequestMetadata.Builderclone()
Returns
Type Description
RequestMetadata.Builder
Overrides

getDefaultInstanceForType()

publicRequestMetadatagetDefaultInstanceForType()
Returns
Type Description
RequestMetadata

getDescriptorForType()

publicDescriptors.DescriptorgetDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEvent()

publicStringgetEvent()

Evevt name.

string event = 2;

Returns
Type Description
String

The event.

getEventBytes()

publicByteStringgetEventBytes()

Evevt name.

string event = 2;

Returns
Type Description
ByteString

The bytes for event.

getLeaseId()

publicStringgetLeaseId()

Lease id.

string lease_id = 4;

Returns
Type Description
String

The leaseId.

getLeaseIdBytes()

publicByteStringgetLeaseIdBytes()

Lease id.

string lease_id = 4;

Returns
Type Description
ByteString

The bytes for leaseId.

getLeaseTerm()

publicDurationgetLeaseTerm()

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()

publicDuration.BuildergetLeaseTermBuilder()

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()

publicDurationOrBuildergetLeaseTermOrBuilder()

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()

publicStringgetOwner()

Owner name.

string owner = 5;

Returns
Type Description
String

The owner.

getOwnerBytes()

publicByteStringgetOwnerBytes()

Owner name.

string owner = 5;

Returns
Type Description
ByteString

The bytes for owner.

getSeries()

publicStringgetSeries()

Series name.

string series = 3;

Returns
Type Description
String

The series.

getSeriesBytes()

publicByteStringgetSeriesBytes()

Series name.

string series = 3;

Returns
Type Description
ByteString

The bytes for series.

getStream()

publicStringgetStream()

Stream name.

string stream = 1;

Returns
Type Description
String

The stream.

getStreamBytes()

publicByteStringgetStreamBytes()

Stream name.

string stream = 1;

Returns
Type Description
ByteString

The bytes for stream.

hasLeaseTerm()

publicbooleanhasLeaseTerm()

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()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RequestMetadata other)

publicRequestMetadata.BuildermergeFrom(RequestMetadataother)
Parameter
Name Description
other RequestMetadata
Returns
Type Description
RequestMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicRequestMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

publicRequestMetadata.BuildermergeFrom(Messageother)
Parameter
Name Description
other Message
Returns
Type Description
RequestMetadata.Builder
Overrides

mergeLeaseTerm(Duration value)

publicRequestMetadata.BuildermergeLeaseTerm(Durationvalue)

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)

publicfinalRequestMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RequestMetadata.Builder
Overrides

setEvent(String value)

publicRequestMetadata.BuildersetEvent(Stringvalue)

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)

publicRequestMetadata.BuildersetEventBytes(ByteStringvalue)

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)

publicRequestMetadata.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
RequestMetadata.Builder
Overrides

setLeaseId(String value)

publicRequestMetadata.BuildersetLeaseId(Stringvalue)

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)

publicRequestMetadata.BuildersetLeaseIdBytes(ByteStringvalue)

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)

publicRequestMetadata.BuildersetLeaseTerm(Durationvalue)

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)

publicRequestMetadata.BuildersetLeaseTerm(Duration.BuilderbuilderForValue)

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)

publicRequestMetadata.BuildersetOwner(Stringvalue)

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)

publicRequestMetadata.BuildersetOwnerBytes(ByteStringvalue)

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)

publicRequestMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
RequestMetadata.Builder
Overrides

setSeries(String value)

publicRequestMetadata.BuildersetSeries(Stringvalue)

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)

publicRequestMetadata.BuildersetSeriesBytes(ByteStringvalue)

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)

publicRequestMetadata.BuildersetStream(Stringvalue)

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)

publicRequestMetadata.BuildersetStreamBytes(ByteStringvalue)

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)

publicfinalRequestMetadata.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RequestMetadata.Builder
Overrides

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.