Class UptimeCheckConfig.HttpCheck.BasicAuthentication (3.4.1)

public static final class UptimeCheckConfig.HttpCheck.BasicAuthentication extends GeneratedMessageV3 implements UptimeCheckConfig.HttpCheck.BasicAuthenticationOrBuilder

The authentication parameters to provide to the specified resource or URL that requires a username and password. Currently, only Basic HTTP authentication is supported in Uptime checks.

Protobuf type google.monitoring.v3.UptimeCheckConfig.HttpCheck.BasicAuthentication

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > UptimeCheckConfig.HttpCheck.BasicAuthentication

Static Fields

PASSWORD_FIELD_NUMBER

public static final int PASSWORD_FIELD_NUMBER
Field Value
TypeDescription
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstance()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder newBuilder()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder

newBuilder(UptimeCheckConfig.HttpCheck.BasicAuthentication prototype)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder newBuilder(UptimeCheckConfig.HttpCheck.BasicAuthentication prototype)
Parameter
NameDescription
prototypeUptimeCheckConfig.HttpCheck.BasicAuthentication
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder

parseDelimitedFrom(InputStream input)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static UptimeCheckConfig.HttpCheck.BasicAuthentication parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<UptimeCheckConfig.HttpCheck.BasicAuthentication> parser()
Returns
TypeDescription
Parser<BasicAuthentication>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public UptimeCheckConfig.HttpCheck.BasicAuthentication getDefaultInstanceForType()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication

getParserForType()

public Parser<UptimeCheckConfig.HttpCheck.BasicAuthentication> getParserForType()
Returns
TypeDescription
Parser<BasicAuthentication>
Overrides

getPassword()

public String getPassword()

The password to use when authenticating with the HTTP server.

string password = 2;

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

The password to use when authenticating with the HTTP server.

string password = 2;

Returns
TypeDescription
ByteString

The bytes for password.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUsername()

public String getUsername()

The username to use when authenticating with the HTTP server.

string username = 1;

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username to use when authenticating with the HTTP server.

string username = 1;

Returns
TypeDescription
ByteString

The bytes for username.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder newBuilderForType()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder toBuilder()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.BasicAuthentication.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException