Class InternalChecker.Builder (3.55.0)

public static final class InternalChecker.Builder extends GeneratedMessageV3.Builder<InternalChecker.Builder> implements InternalCheckerOrBuilder

An internal checker allows Uptime checks to run on private/internal GCP resources.

Protobuf type google.monitoring.v3.InternalChecker

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public InternalChecker.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InternalChecker.Builder
Overrides

build()

public InternalChecker build()
Returns
Type Description
InternalChecker

buildPartial()

public InternalChecker buildPartial()
Returns
Type Description
InternalChecker

clear()

public InternalChecker.Builder clear()
Returns
Type Description
InternalChecker.Builder
Overrides

clearDisplayName()

public InternalChecker.Builder clearDisplayName()

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InternalChecker.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
InternalChecker.Builder
Overrides

clearGcpZone()

public InternalChecker.Builder clearGcpZone()

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

string gcp_zone = 4;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clearName()

public InternalChecker.Builder clearName()

A unique resource name for this InternalChecker. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

[PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clearNetwork()

public InternalChecker.Builder clearNetwork()

The GCP VPC network where the internal resource lives (ex: "default").

string network = 3;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public InternalChecker.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
InternalChecker.Builder
Overrides

clearPeerProjectId()

public InternalChecker.Builder clearPeerProjectId()

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

string peer_project_id = 6;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clearState()

public InternalChecker.Builder clearState()

The current operational state of the internal checker.

.google.monitoring.v3.InternalChecker.State state = 7;

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

clone()

public InternalChecker.Builder clone()
Returns
Type Description
InternalChecker.Builder
Overrides

getDefaultInstanceForType()

public InternalChecker getDefaultInstanceForType()
Returns
Type Description
InternalChecker

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Returns
Type Description
ByteString

The bytes for displayName.

getGcpZone()

public String getGcpZone()

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

string gcp_zone = 4;

Returns
Type Description
String

The gcpZone.

getGcpZoneBytes()

public ByteString getGcpZoneBytes()

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

string gcp_zone = 4;

Returns
Type Description
ByteString

The bytes for gcpZone.

getName()

public String getName()

A unique resource name for this InternalChecker. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

[PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

A unique resource name for this InternalChecker. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

[PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

The GCP VPC network where the internal resource lives (ex: "default").

string network = 3;

Returns
Type Description
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

The GCP VPC network where the internal resource lives (ex: "default").

string network = 3;

Returns
Type Description
ByteString

The bytes for network.

getPeerProjectId()

public String getPeerProjectId()

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

string peer_project_id = 6;

Returns
Type Description
String

The peerProjectId.

getPeerProjectIdBytes()

public ByteString getPeerProjectIdBytes()

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

string peer_project_id = 6;

Returns
Type Description
ByteString

The bytes for peerProjectId.

getState()

public InternalChecker.State getState()

The current operational state of the internal checker.

.google.monitoring.v3.InternalChecker.State state = 7;

Returns
Type Description
InternalChecker.State

The state.

getStateValue()

public int getStateValue()

The current operational state of the internal checker.

.google.monitoring.v3.InternalChecker.State state = 7;

Returns
Type Description
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(InternalChecker other)

public InternalChecker.Builder mergeFrom(InternalChecker other)
Parameter
Name Description
other InternalChecker
Returns
Type Description
InternalChecker.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public InternalChecker.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
InternalChecker.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public InternalChecker.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
InternalChecker.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InternalChecker.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InternalChecker.Builder
Overrides

setDisplayName(String value)

public InternalChecker.Builder setDisplayName(String value)

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public InternalChecker.Builder setDisplayNameBytes(ByteString value)

The checker's human-readable name. The display name should be unique within a Cloud Monitoring Metrics Scope in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InternalChecker.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
InternalChecker.Builder
Overrides

setGcpZone(String value)

public InternalChecker.Builder setGcpZone(String value)

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

string gcp_zone = 4;

Parameter
Name Description
value String

The gcpZone to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setGcpZoneBytes(ByteString value)

public InternalChecker.Builder setGcpZoneBytes(ByteString value)

The GCP zone the Uptime check should egress from. Only respected for internal Uptime checks, where internal_network is specified.

string gcp_zone = 4;

Parameter
Name Description
value ByteString

The bytes for gcpZone to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setName(String value)

public InternalChecker.Builder setName(String value)

A unique resource name for this InternalChecker. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

[PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

string name = 1;

Parameter
Name Description
value String

The name to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setNameBytes(ByteString value)

public InternalChecker.Builder setNameBytes(ByteString value)

A unique resource name for this InternalChecker. The format is:

 projects/[PROJECT_ID_OR_NUMBER]/internalCheckers/[INTERNAL_CHECKER_ID]

[PROJECT_ID_OR_NUMBER] is the Cloud Monitoring Metrics Scope project for the Uptime check config associated with the internal checker.

string name = 1;

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setNetwork(String value)

public InternalChecker.Builder setNetwork(String value)

The GCP VPC network where the internal resource lives (ex: "default").

string network = 3;

Parameter
Name Description
value String

The network to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setNetworkBytes(ByteString value)

public InternalChecker.Builder setNetworkBytes(ByteString value)

The GCP VPC network where the internal resource lives (ex: "default").

string network = 3;

Parameter
Name Description
value ByteString

The bytes for network to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setPeerProjectId(String value)

public InternalChecker.Builder setPeerProjectId(String value)

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

string peer_project_id = 6;

Parameter
Name Description
value String

The peerProjectId to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setPeerProjectIdBytes(ByteString value)

public InternalChecker.Builder setPeerProjectIdBytes(ByteString value)

The GCP project ID where the internal checker lives. Not necessary the same as the Metrics Scope project.

string peer_project_id = 6;

Parameter
Name Description
value ByteString

The bytes for peerProjectId to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

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

public InternalChecker.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
InternalChecker.Builder
Overrides

setState(InternalChecker.State value)

public InternalChecker.Builder setState(InternalChecker.State value)

The current operational state of the internal checker.

.google.monitoring.v3.InternalChecker.State state = 7;

Parameter
Name Description
value InternalChecker.State

The state to set.

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setStateValue(int value)

public InternalChecker.Builder setStateValue(int value)

The current operational state of the internal checker.

.google.monitoring.v3.InternalChecker.State state = 7;

Parameter
Name Description
value int

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

Returns
Type Description
InternalChecker.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final InternalChecker.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
InternalChecker.Builder
Overrides