Class AgentCardSignature.Builder (0.27.0)

public static final class AgentCardSignature.Builder extends GeneratedMessage.Builder<AgentCardSignature.Builder> implements AgentCardSignatureOrBuilder

AgentCardSignature represents a JWS signature of an AgentCard.

Protobuf type google.cloud.geminidataanalytics.v1beta.AgentCardSignature

Static Methods

getDescriptor()

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

Methods

build()

public AgentCardSignature build()
Returns
Type Description
AgentCardSignature

buildPartial()

public AgentCardSignature buildPartial()
Returns
Type Description
AgentCardSignature

clear()

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

clearHeader()

public AgentCardSignature.Builder clearHeader()

Optional. The unprotected JWS header values.

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

Returns
Type Description
AgentCardSignature.Builder

clearProtected()

public AgentCardSignature.Builder clearProtected()

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

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

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.

clearSignature()

public AgentCardSignature.Builder clearSignature()

Required. The computed signature, base64url-encoded.

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

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentCardSignature getDefaultInstanceForType()
Returns
Type Description
AgentCardSignature

getDescriptorForType()

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

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.

getHeaderBuilder()

public Struct.Builder getHeaderBuilder()

Optional. The unprotected JWS header values.

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

Returns
Type Description
Builder

getHeaderOrBuilder()

public StructOrBuilder getHeaderOrBuilder()

Optional. The unprotected JWS header values.

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

Returns
Type Description
StructOrBuilder

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.

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentCardSignature other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHeader(Struct value)

public AgentCardSignature.Builder mergeHeader(Struct value)

Optional. The unprotected JWS header values.

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

Parameter
Name Description
value Struct
Returns
Type Description
AgentCardSignature.Builder

setHeader(Struct value)

public AgentCardSignature.Builder setHeader(Struct value)

Optional. The unprotected JWS header values.

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

Parameter
Name Description
value Struct
Returns
Type Description
AgentCardSignature.Builder

setHeader(Struct.Builder builderForValue)

public AgentCardSignature.Builder setHeader(Struct.Builder builderForValue)

Optional. The unprotected JWS header values.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
AgentCardSignature.Builder

setProtected(String value)

public AgentCardSignature.Builder setProtected(String value)

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

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

Parameter
Name Description
value String

The protected to set.

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.

setProtectedBytes(ByteString value)

public AgentCardSignature.Builder setProtectedBytes(ByteString value)

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

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

Parameter
Name Description
value ByteString

The bytes for protected to set.

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.

setSignature(String value)

public AgentCardSignature.Builder setSignature(String value)

Required. The computed signature, base64url-encoded.

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

Parameter
Name Description
value String

The signature to set.

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.

setSignatureBytes(ByteString value)

public AgentCardSignature.Builder setSignatureBytes(ByteString value)

Required. The computed signature, base64url-encoded.

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

Parameter
Name Description
value ByteString

The bytes for signature to set.

Returns
Type Description
AgentCardSignature.Builder

This builder for chaining.