Class UptimeCheckConfig.HttpCheck.ResponseStatusCode (3.24.0)

public static final class UptimeCheckConfig.HttpCheck.ResponseStatusCode extends GeneratedMessageV3 implements UptimeCheckConfig.HttpCheck.ResponseStatusCodeOrBuilder

A status to accept. Either a status code class like "2xx", or an integer status code like "200".

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

Inheritance

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

Static Fields

STATUS_CLASS_FIELD_NUMBER

public static final int STATUS_CLASS_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_VALUE_FIELD_NUMBER

public static final int STATUS_VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(UptimeCheckConfig.HttpCheck.ResponseStatusCode prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStatusClass()

public UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass getStatusClass()

A class of status codes to accept.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2;

Returns
TypeDescription
UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass

The statusClass.

getStatusClassValue()

public int getStatusClassValue()

A class of status codes to accept.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for statusClass.

getStatusCodeCase()

public UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase getStatusCodeCase()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusCodeCase

getStatusValue()

public int getStatusValue()

A status code to accept.

int32 status_value = 1;

Returns
TypeDescription
int

The statusValue.

hasStatusClass()

public boolean hasStatusClass()

A class of status codes to accept.

.google.monitoring.v3.UptimeCheckConfig.HttpCheck.ResponseStatusCode.StatusClass status_class = 2;

Returns
TypeDescription
boolean

Whether the statusClass field is set.

hasStatusValue()

public boolean hasStatusValue()

A status code to accept.

int32 status_value = 1;

Returns
TypeDescription
boolean

Whether the statusValue field is set.

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.ResponseStatusCode.Builder newBuilderForType()
Returns
TypeDescription
UptimeCheckConfig.HttpCheck.ResponseStatusCode.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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