Class GenericHTTPEndpointConfig.BearerTokenAuthentication (0.44.0)

public static final class GenericHTTPEndpointConfig.BearerTokenAuthentication extends GeneratedMessage implements GenericHTTPEndpointConfig.BearerTokenAuthenticationOrBuilder

Bearer token authentication with a token.

Protobuf type google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BearerTokenAuthentication

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > GenericHTTPEndpointConfig.BearerTokenAuthentication

Static Fields

TOKEN_SECRET_VERSION_FIELD_NUMBER

public static final int TOKEN_SECRET_VERSION_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static GenericHTTPEndpointConfig.BearerTokenAuthentication getDefaultInstance()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication

getDescriptor()

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

newBuilder()

public static GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder newBuilder()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder

newBuilder(GenericHTTPEndpointConfig.BearerTokenAuthentication prototype)

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

parseDelimitedFrom(InputStream input)

public static GenericHTTPEndpointConfig.BearerTokenAuthentication parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static GenericHTTPEndpointConfig.BearerTokenAuthentication parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static GenericHTTPEndpointConfig.BearerTokenAuthentication parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static GenericHTTPEndpointConfig.BearerTokenAuthentication parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static GenericHTTPEndpointConfig.BearerTokenAuthentication parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<GenericHTTPEndpointConfig.BearerTokenAuthentication> parser()
Returns
Type Description
Parser<BearerTokenAuthentication>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public GenericHTTPEndpointConfig.BearerTokenAuthentication getDefaultInstanceForType()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication

getParserForType()

public Parser<GenericHTTPEndpointConfig.BearerTokenAuthentication> getParserForType()
Returns
Type Description
Parser<BearerTokenAuthentication>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getTokenCase()

public GenericHTTPEndpointConfig.BearerTokenAuthentication.TokenCase getTokenCase()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication.TokenCase

getTokenSecretVersion()

public String getTokenSecretVersion()

Optional. The token SecretManager secret version to authenticate as.

string token_secret_version = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The tokenSecretVersion.

getTokenSecretVersionBytes()

public ByteString getTokenSecretVersionBytes()

Optional. The token SecretManager secret version to authenticate as.

string token_secret_version = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for tokenSecretVersion.

hasTokenSecretVersion()

public boolean hasTokenSecretVersion()

Optional. The token SecretManager secret version to authenticate as.

string token_secret_version = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

Whether the tokenSecretVersion 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 GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder newBuilderForType()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder toBuilder()
Returns
Type Description
GenericHTTPEndpointConfig.BearerTokenAuthentication.Builder

writeTo(CodedOutputStream output)

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