Class SyntheticMonitorTarget.CloudFunctionV2Target.Builder (3.59.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

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

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
Overrides

build()

public SyntheticMonitorTarget.CloudFunctionV2Target build()

buildPartial()

public SyntheticMonitorTarget.CloudFunctionV2Target buildPartial()

clear()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clear()
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];

clearField(Descriptors.FieldDescriptor field)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
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
Overrides

clone()

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder clone()
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()

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

mergeFrom(SyntheticMonitorTarget.CloudFunctionV2Target other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SyntheticMonitorTarget.CloudFunctionV2Target.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

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

setField(Descriptors.FieldDescriptor field, Object value)

public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
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
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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