Package com.google.monitoring.v3
Class SyntheticMonitorTarget.CloudFunctionV2Target.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
com.google.monitoring.v3.SyntheticMonitorTarget.CloudFunctionV2Target.Builder
- All Implemented Interfaces:
SyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SyntheticMonitorTarget.CloudFunctionV2Target
public static final class SyntheticMonitorTarget.CloudFunctionV2Target.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
implements SyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder
A Synthetic Monitor deployed to a Cloud Functions V2 instance.Protobuf type
google.monitoring.v3.SyntheticMonitorTarget.CloudFunctionV2Target-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Required.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetName()Required.com.google.protobuf.ByteStringRequired.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOutput only.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Output only.setCloudRunRevision(MonitoredResource.Builder builderForValue) Output only.Required.setNameBytes(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SyntheticMonitorTarget.CloudFunctionV2Target.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
-
mergeFrom
public SyntheticMonitorTarget.CloudFunctionV2Target.Builder mergeFrom(SyntheticMonitorTarget.CloudFunctionV2Target other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>
-
mergeFrom
public SyntheticMonitorTarget.CloudFunctionV2Target.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SyntheticMonitorTarget.CloudFunctionV2Target.Builder>- Throws:
IOException
-
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) = { ... }- Specified by:
getNamein interfaceSyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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) = { ... }- Specified by:
getNameBytesin interfaceSyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder- Returns:
- The bytes for name.
-
setName
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) = { ... }- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
public SyntheticMonitorTarget.CloudFunctionV2Target.Builder setNameBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
hasCloudRunRevisionin interfaceSyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder- Returns:
- Whether the cloudRunRevision field is set.
-
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];- Specified by:
getCloudRunRevisionin interfaceSyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder- Returns:
- The cloudRunRevision.
-
setCloudRunRevision
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]; -
setCloudRunRevision
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]; -
mergeCloudRunRevision
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]; -
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]; -
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]; -
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];- Specified by:
getCloudRunRevisionOrBuilderin interfaceSyntheticMonitorTarget.CloudFunctionV2TargetOrBuilder
-