Class InternalChecker.Builder (3.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public InternalChecker build()
Returns
TypeDescription
InternalChecker

buildPartial()

public InternalChecker buildPartial()
Returns
TypeDescription
InternalChecker

clear()

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

clearDisplayName()

public InternalChecker.Builder clearDisplayName()

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

string display_name = 2;

Returns
TypeDescription
InternalChecker.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public InternalChecker.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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 Stackdriver Workspace project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
TypeDescription
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
TypeDescription
InternalChecker.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPeerProjectId()

public InternalChecker.Builder clearPeerProjectId()

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

string peer_project_id = 6;

Returns
TypeDescription
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
TypeDescription
InternalChecker.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public InternalChecker getDefaultInstanceForType()
Returns
TypeDescription
InternalChecker

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

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

string display_name = 2;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

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

string display_name = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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 Stackdriver Workspace project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
TypeDescription
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 Stackdriver Workspace project for the Uptime check config associated with the internal checker.

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNetwork()

public String getNetwork()

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

string network = 3;

Returns
TypeDescription
String

The network.

getNetworkBytes()

public ByteString getNetworkBytes()

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

string network = 3;

Returns
TypeDescription
ByteString

The bytes for network.

getPeerProjectId()

public String getPeerProjectId()

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

string peer_project_id = 6;

Returns
TypeDescription
String

The peerProjectId.

getPeerProjectIdBytes()

public ByteString getPeerProjectIdBytes()

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

string peer_project_id = 6;

Returns
TypeDescription
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
TypeDescription
InternalChecker.State

The state.

getStateValue()

public int getStateValue()

The current operational state of the internal checker.

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

Returns
TypeDescription
int

The enum numeric value on the wire for state.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(InternalChecker other)

public InternalChecker.Builder mergeFrom(InternalChecker other)
Parameter
NameDescription
otherInternalChecker
Returns
TypeDescription
InternalChecker.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final InternalChecker.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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 Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
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 Stackdriver Workspace in order to make it easier to identify; however, uniqueness is not enforced.

string display_name = 2;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
InternalChecker.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public InternalChecker.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The gcpZone to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for gcpZone to set.

Returns
TypeDescription
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 Stackdriver Workspace project for the Uptime check config associated with the internal checker.

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
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 Stackdriver Workspace project for the Uptime check config associated with the internal checker.

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
valueString

The network to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for network to set.

Returns
TypeDescription
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 Workspace project.

string peer_project_id = 6;

Parameter
NameDescription
valueString

The peerProjectId to set.

Returns
TypeDescription
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 Workspace project.

string peer_project_id = 6;

Parameter
NameDescription
valueByteString

The bytes for peerProjectId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueInternalChecker.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

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

Returns
TypeDescription
InternalChecker.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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