Class UptimeCheckIp.Builder (3.30.0)

public static final class UptimeCheckIp.Builder extends GeneratedMessageV3.Builder<UptimeCheckIp.Builder> implements UptimeCheckIpOrBuilder

Contains the region, location, and list of IP addresses where checkers in the location run from.

Protobuf type google.monitoring.v3.UptimeCheckIp

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckIp.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

build()

public UptimeCheckIp build()
Returns
TypeDescription
UptimeCheckIp

buildPartial()

public UptimeCheckIp buildPartial()
Returns
TypeDescription
UptimeCheckIp

clear()

public UptimeCheckIp.Builder clear()
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public UptimeCheckIp.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

clearIpAddress()

public UptimeCheckIp.Builder clearIpAddress()

The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

string ip_address = 3;

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

clearLocation()

public UptimeCheckIp.Builder clearLocation()

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

string location = 2;

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public UptimeCheckIp.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

clearRegion()

public UptimeCheckIp.Builder clearRegion()

A broad region category in which the IP address is located.

.google.monitoring.v3.UptimeCheckRegion region = 1;

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

clone()

public UptimeCheckIp.Builder clone()
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

getDefaultInstanceForType()

public UptimeCheckIp getDefaultInstanceForType()
Returns
TypeDescription
UptimeCheckIp

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getIpAddress()

public String getIpAddress()

The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

string ip_address = 3;

Returns
TypeDescription
String

The ipAddress.

getIpAddressBytes()

public ByteString getIpAddressBytes()

The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

string ip_address = 3;

Returns
TypeDescription
ByteString

The bytes for ipAddress.

getLocation()

public String getLocation()

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

string location = 2;

Returns
TypeDescription
String

The location.

getLocationBytes()

public ByteString getLocationBytes()

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

string location = 2;

Returns
TypeDescription
ByteString

The bytes for location.

getRegion()

public UptimeCheckRegion getRegion()

A broad region category in which the IP address is located.

.google.monitoring.v3.UptimeCheckRegion region = 1;

Returns
TypeDescription
UptimeCheckRegion

The region.

getRegionValue()

public int getRegionValue()

A broad region category in which the IP address is located.

.google.monitoring.v3.UptimeCheckRegion region = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for region.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(UptimeCheckIp other)

public UptimeCheckIp.Builder mergeFrom(UptimeCheckIp other)
Parameter
NameDescription
otherUptimeCheckIp
Returns
TypeDescription
UptimeCheckIp.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UptimeCheckIp.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public UptimeCheckIp.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckIp.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public UptimeCheckIp.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

setIpAddress(String value)

public UptimeCheckIp.Builder setIpAddress(String value)

The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

string ip_address = 3;

Parameter
NameDescription
valueString

The ipAddress to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setIpAddressBytes(ByteString value)

public UptimeCheckIp.Builder setIpAddressBytes(ByteString value)

The IP address from which the Uptime check originates. This is a fully specified IP address (not an IP address range). Most IP addresses, as of this publication, are in IPv4 format; however, one should not rely on the IP addresses being in IPv4 format indefinitely, and should support interpreting this field in either IPv4 or IPv6 format.

string ip_address = 3;

Parameter
NameDescription
valueByteString

The bytes for ipAddress to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setLocation(String value)

public UptimeCheckIp.Builder setLocation(String value)

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

string location = 2;

Parameter
NameDescription
valueString

The location to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setLocationBytes(ByteString value)

public UptimeCheckIp.Builder setLocationBytes(ByteString value)

A more specific location within the region that typically encodes a particular city/town/metro (and its containing state/province or country) within the broader umbrella region category.

string location = 2;

Parameter
NameDescription
valueByteString

The bytes for location to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setRegion(UptimeCheckRegion value)

public UptimeCheckIp.Builder setRegion(UptimeCheckRegion value)

A broad region category in which the IP address is located.

.google.monitoring.v3.UptimeCheckRegion region = 1;

Parameter
NameDescription
valueUptimeCheckRegion

The region to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setRegionValue(int value)

public UptimeCheckIp.Builder setRegionValue(int value)

A broad region category in which the IP address is located.

.google.monitoring.v3.UptimeCheckRegion region = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for region to set.

Returns
TypeDescription
UptimeCheckIp.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UptimeCheckIp.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UptimeCheckIp.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
UptimeCheckIp.Builder
Overrides