Class AgentCardSignature (0.27.0)

public final class AgentCardSignature extends GeneratedMessage implements AgentCardSignatureOrBuilder

AgentCardSignature represents a JWS signature of an AgentCard.

Protobuf type google.cloud.geminidataanalytics.v1beta.AgentCardSignature

Static Fields

HEADER_FIELD_NUMBER

public static final int HEADER_FIELD_NUMBER
Field Value
Type Description
int

PROTECTED_FIELD_NUMBER

public static final int PROTECTED_FIELD_NUMBER
Field Value
Type Description
int

SIGNATURE_FIELD_NUMBER

public static final int SIGNATURE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AgentCardSignature getDefaultInstance()
Returns
Type Description
AgentCardSignature

getDescriptor()

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

newBuilder()

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

newBuilder(AgentCardSignature prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public AgentCardSignature getDefaultInstanceForType()
Returns
Type Description
AgentCardSignature

getHeader()

public Struct getHeader()

Optional. The unprotected JWS header values.

.google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Struct

The header.

getHeaderOrBuilder()

public StructOrBuilder getHeaderOrBuilder()

Optional. The unprotected JWS header values.

.google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
StructOrBuilder

getParserForType()

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

getProtected()

public String getProtected()

Required. The protected JWS header for the signature. Base64url-encoded.

string protected = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The protected.

getProtectedBytes()

public ByteString getProtectedBytes()

Required. The protected JWS header for the signature. Base64url-encoded.

string protected = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for protected.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSignature()

public String getSignature()

Required. The computed signature, base64url-encoded.

string signature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The signature.

getSignatureBytes()

public ByteString getSignatureBytes()

Required. The computed signature, base64url-encoded.

string signature = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for signature.

hasHeader()

public boolean hasHeader()

Optional. The unprotected JWS header values.

.google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the header field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected AgentCardSignature.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AgentCardSignature.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

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