Class RequestMetadata (0.8.0)

public final class RequestMetadata extends GeneratedMessageV3 implements RequestMetadataOrBuilder

RequestMetadata is the metadata message for the request.

Protobuf type google.cloud.visionai.v1.RequestMetadata

Static Fields

EVENT_FIELD_NUMBER

public static final int EVENT_FIELD_NUMBER
Field Value
Type Description
int

LEASE_ID_FIELD_NUMBER

public static final int LEASE_ID_FIELD_NUMBER
Field Value
Type Description
int

LEASE_TERM_FIELD_NUMBER

public static final int LEASE_TERM_FIELD_NUMBER
Field Value
Type Description
int

OWNER_FIELD_NUMBER

public static final int OWNER_FIELD_NUMBER
Field Value
Type Description
int

SERIES_FIELD_NUMBER

public static final int SERIES_FIELD_NUMBER
Field Value
Type Description
int

STREAM_FIELD_NUMBER

public static final int STREAM_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static RequestMetadata getDefaultInstance()
Returns
Type Description
RequestMetadata

getDescriptor()

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

newBuilder()

public static RequestMetadata.Builder newBuilder()
Returns
Type Description
RequestMetadata.Builder

newBuilder(RequestMetadata prototype)

public static RequestMetadata.Builder newBuilder(RequestMetadata prototype)
Parameter
Name Description
prototype RequestMetadata
Returns
Type Description
RequestMetadata.Builder

parseDelimitedFrom(InputStream input)

public static RequestMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static RequestMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RequestMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RequestMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static RequestMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static RequestMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RequestMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
RequestMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<RequestMetadata> parser()
Returns
Type Description
Parser<RequestMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public RequestMetadata getDefaultInstanceForType()
Returns
Type Description
RequestMetadata

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.

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.

getParserForType()

public Parser<RequestMetadata> getParserForType()
Returns
Type Description
Parser<RequestMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public RequestMetadata.Builder newBuilderForType()
Returns
Type Description
RequestMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RequestMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
RequestMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public RequestMetadata.Builder toBuilder()
Returns
Type Description
RequestMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException