Class GenericHTTPEndpointConfig.BasicAuthentication (0.44.0)

public static final class GenericHTTPEndpointConfig.BasicAuthentication extends GeneratedMessage implements GenericHTTPEndpointConfig.BasicAuthenticationOrBuilder

Basic authentication with username and password.

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

Inheritance

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

Static Fields

PASSWORD_SECRET_VERSION_FIELD_NUMBER

public static final int PASSWORD_SECRET_VERSION_FIELD_NUMBER
Field Value
Type Description
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(GenericHTTPEndpointConfig.BasicAuthentication prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getPasswordCase()

public GenericHTTPEndpointConfig.BasicAuthentication.PasswordCase getPasswordCase()
Returns
Type Description
GenericHTTPEndpointConfig.BasicAuthentication.PasswordCase

getPasswordSecretVersion()

public String getPasswordSecretVersion()

The password SecretManager secret version to authenticate as.

string password_secret_version = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
String

The passwordSecretVersion.

getPasswordSecretVersionBytes()

public ByteString getPasswordSecretVersionBytes()

The password SecretManager secret version to authenticate as.

string password_secret_version = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for passwordSecretVersion.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUsername()

public String getUsername()

Required. The username to authenticate as.

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

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. The username to authenticate as.

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

Returns
Type Description
ByteString

The bytes for username.

hasPasswordSecretVersion()

public boolean hasPasswordSecretVersion()

The password SecretManager secret version to authenticate as.

string password_secret_version = 2 [(.google.api.resource_reference) = { ... }

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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