public static final class CreateAlertPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder> implements CreateAlertPolicyRequestOrBuilder
The protocol for the `CreateAlertPolicy` request.Protobuf type
google.monitoring.v3.CreateAlertPolicyRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofmergeFrompublic static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder clear()
clear in interface Message.Builderclear in interface MessageLite.Builderclear in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface Message.BuildergetDescriptorForType in interface MessageOrBuildergetDescriptorForType in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilderpublic CreateAlertPolicyRequest build()
build in interface Message.Builderbuild in interface MessageLite.Builderpublic CreateAlertPolicyRequest buildPartial()
buildPartial in interface Message.BuilderbuildPartial in interface MessageLite.Builderpublic CreateAlertPolicyRequest.Builder clone()
clone in interface Message.Builderclone in interface MessageLite.Builderclone in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField in interface Message.BuildersetField in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField in interface Message.BuilderclearField in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof in interface Message.BuilderclearOneof in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField in interface Message.BuildersetRepeatedField in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField in interface Message.BuilderaddRepeatedField in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder mergeFrom(Message other)
mergeFrom in interface Message.BuildermergeFrom in class AbstractMessage.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder mergeFrom(CreateAlertPolicyRequest other)
public final boolean isInitialized()
isInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public CreateAlertPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom in interface Message.BuildermergeFrom in interface MessageLite.BuildermergeFrom in class AbstractMessage.Builder<CreateAlertPolicyRequest.Builder>java.io.IOExceptionpublic java.lang.String getName()
The project in which to create the alerting policy. The format is `projects/[PROJECT_ID]`. Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
string name = 3;getName in interface CreateAlertPolicyRequestOrBuilderpublic ByteString getNameBytes()
The project in which to create the alerting policy. The format is `projects/[PROJECT_ID]`. Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
string name = 3;getNameBytes in interface CreateAlertPolicyRequestOrBuilderpublic CreateAlertPolicyRequest.Builder setName(java.lang.String value)
The project in which to create the alerting policy. The format is `projects/[PROJECT_ID]`. Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
string name = 3;public CreateAlertPolicyRequest.Builder clearName()
The project in which to create the alerting policy. The format is `projects/[PROJECT_ID]`. Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
string name = 3;public CreateAlertPolicyRequest.Builder setNameBytes(ByteString value)
The project in which to create the alerting policy. The format is `projects/[PROJECT_ID]`. Note that this field names the parent container in which the alerting policy will be written, not the name of the created policy. The alerting policy that is returned will have a name that contains a normalized representation of this name as a prefix but adds a suffix of the form `/alertPolicies/[POLICY_ID]`, identifying the policy in the container.
string name = 3;public boolean hasAlertPolicy()
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;hasAlertPolicy in interface CreateAlertPolicyRequestOrBuilderpublic AlertPolicy getAlertPolicy()
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;getAlertPolicy in interface CreateAlertPolicyRequestOrBuilderpublic CreateAlertPolicyRequest.Builder setAlertPolicy(AlertPolicy value)
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;public CreateAlertPolicyRequest.Builder setAlertPolicy(AlertPolicy.Builder builderForValue)
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;public CreateAlertPolicyRequest.Builder mergeAlertPolicy(AlertPolicy value)
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;public CreateAlertPolicyRequest.Builder clearAlertPolicy()
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;public AlertPolicy.Builder getAlertPolicyBuilder()
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;public AlertPolicyOrBuilder getAlertPolicyOrBuilder()
The requested alerting policy. You should omit the `name` field in this policy. The name will be returned in the new policy, including a new [ALERT_POLICY_ID] value.
.google.monitoring.v3.AlertPolicy alert_policy = 2;getAlertPolicyOrBuilder in interface CreateAlertPolicyRequestOrBuilderpublic final CreateAlertPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields in interface Message.BuildersetUnknownFields in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>public final CreateAlertPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields in interface Message.BuildermergeUnknownFields in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>