Class RequestMetadata.Builder (0.33.0)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass RequestMetadata.BuilderextendsGeneratedMessageV3.Builder<RequestMetadata.Builder>implementsRequestMetadataOrBuilderRequestMetadata is the metadata message for the request.
Protobuf type google.cloud.visionai.v1.RequestMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > RequestMetadata.BuilderImplements
RequestMetadataOrBuilderInherited Members
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 |
|
build()
publicRequestMetadatabuild()| Returns | |
|---|---|
| Type | Description |
RequestMetadata |
|
buildPartial()
publicRequestMetadatabuildPartial()| Returns | |
|---|---|
| Type | Description |
RequestMetadata |
|
clear()
publicRequestMetadata.Builderclear()| Returns | |
|---|---|
| Type | Description |
RequestMetadata.Builder |
|
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 |
|
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 |
|
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 |
|
getDefaultInstanceForType()
publicRequestMetadatagetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RequestMetadata |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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 |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicRequestMetadata.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RequestMetadata.Builder |
|
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 |
|
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 |
|
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 |
|
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 |
|