Class SyntheticMonitorTarget.CloudFunctionV2Target.Builder (3.49.0)

public static final class SyntheticMonitorTarget.CloudFunctionV2Target.Builder extends GeneratedMessageV3.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder> implements SyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder

A Synthetic Monitor deployed to a Cloud Functions V2 instance.

Protobuf type google.monitoring.v3.SyntheticMonitorTarget.CloudFunctionV2Target

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public SyntheticMonitorTarget.CloudFunctionV2Target build()
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target

buildPartial()

public SyntheticMonitorTarget.CloudFunctionV2Target buildPartial()
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target

clear()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clear()
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder
Overrides

clearCloudRunRevision()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clearCloudRunRevision()

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clearName()

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clone()
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder
Overrides

getCloudRunRevision()

public MonitoredResource getCloudRunRevision()

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.api.MonitoredResource

The cloudRunRevision.

getCloudRunRevisionBuilder()

public MonitoredResource.Builder getCloudRunRevisionBuilder()

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.api.MonitoredResource.Builder

getCloudRunRevisionOrBuilder()

public MonitoredResourceOrBuilder getCloudRunRevisionOrBuilder()

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.api.MonitoredResourceOrBuilder

getDefaultInstanceForType()

public SyntheticMonitorTarget.CloudFunctionV2Target getDefaultInstanceForType()
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target

getDescriptorForType()

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

getName()

public String getName()

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for name.

hasCloudRunRevision()

public boolean hasCloudRunRevision()

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the cloudRunRevision field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCloudRunRevision(MonitoredResource value)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder mergeCloudRunRevision(MonitoredResource value)

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.api.MonitoredResource
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

mergeFrom(SyntheticMonitorTarget.CloudFunctionV2Target other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudRunRevision(MonitoredResource value)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setCloudRunRevision(MonitoredResource value)

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value com.google.api.MonitoredResource
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

setCloudRunRevision(MonitoredResource.Builder builderForValue)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setCloudRunRevision(MonitoredResource.Builder builderForValue)

Output only. The cloud_run_revision Monitored Resource associated with the GCFv2. The Synthetic Monitor execution results (metrics, logs, and spans) are reported against this Monitored Resource. This field is output only.

.google.api.MonitoredResource cloud_run_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue com.google.api.MonitoredResource.Builder
Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setName(String value)

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setNameBytes(ByteString value)

Required. Fully qualified GCFv2 resource name i.e. projects/{project}/locations/{location}/functions/{function} Required.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SyntheticMonitorTarget.CloudFunctionV2Target.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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