public static final class CreateAlertPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder> implements CreateAlertPolicyRequestOrBuilder
The protocol for the `CreateAlertPolicy` request.Protobuf type
google.monitoring.v3.CreateAlertPolicyRequest
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public CreateAlertPolicyRequest build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public CreateAlertPolicyRequest buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public CreateAlertPolicyRequest.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder mergeFrom(CreateAlertPolicyRequest other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public CreateAlertPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<CreateAlertPolicyRequest.Builder>
java.io.IOException
public 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 CreateAlertPolicyRequestOrBuilder
public 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 CreateAlertPolicyRequestOrBuilder
public 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 CreateAlertPolicyRequestOrBuilder
public 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 CreateAlertPolicyRequestOrBuilder
public 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 CreateAlertPolicyRequestOrBuilder
public final CreateAlertPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>
public final CreateAlertPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<CreateAlertPolicyRequest.Builder>