public static final class VerifyNotificationChannelRequest.Builder extends GeneratedMessageV3.Builder<VerifyNotificationChannelRequest.Builder> implements VerifyNotificationChannelRequestOrBuilder
The VerifyNotificationChannel
request.
Protobuf type google.monitoring.v3.VerifyNotificationChannelRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public VerifyNotificationChannelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public VerifyNotificationChannelRequest build()
Returns
buildPartial()
public VerifyNotificationChannelRequest buildPartial()
Returns
clear()
public VerifyNotificationChannelRequest.Builder clear()
Returns
Overrides
clearCode()
public VerifyNotificationChannelRequest.Builder clearCode()
Required. The verification code that was delivered to the channel as
a result of invoking the SendNotificationChannelVerificationCode
API
method or that was retrieved from a verified channel via
GetNotificationChannelVerificationCode
. For example, one might have
"G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
guaranteed that the code is valid UTF-8; one should not
make any assumptions regarding the structure or format of the code).
string code = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public VerifyNotificationChannelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearName()
public VerifyNotificationChannelRequest.Builder clearName()
Required. The notification channel to verify.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public VerifyNotificationChannelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public VerifyNotificationChannelRequest.Builder clone()
Returns
Overrides
getCode()
Required. The verification code that was delivered to the channel as
a result of invoking the SendNotificationChannelVerificationCode
API
method or that was retrieved from a verified channel via
GetNotificationChannelVerificationCode
. For example, one might have
"G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
guaranteed that the code is valid UTF-8; one should not
make any assumptions regarding the structure or format of the code).
string code = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The code.
|
getCodeBytes()
public ByteString getCodeBytes()
Required. The verification code that was delivered to the channel as
a result of invoking the SendNotificationChannelVerificationCode
API
method or that was retrieved from a verified channel via
GetNotificationChannelVerificationCode
. For example, one might have
"G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
guaranteed that the code is valid UTF-8; one should not
make any assumptions regarding the structure or format of the code).
string code = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public VerifyNotificationChannelRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getName()
Required. The notification channel to verify.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The name.
|
getNameBytes()
public ByteString getNameBytes()
Required. The notification channel to verify.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(VerifyNotificationChannelRequest other)
public VerifyNotificationChannelRequest.Builder mergeFrom(VerifyNotificationChannelRequest other)
Parameter
Returns
public VerifyNotificationChannelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public VerifyNotificationChannelRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final VerifyNotificationChannelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setCode(String value)
public VerifyNotificationChannelRequest.Builder setCode(String value)
Required. The verification code that was delivered to the channel as
a result of invoking the SendNotificationChannelVerificationCode
API
method or that was retrieved from a verified channel via
GetNotificationChannelVerificationCode
. For example, one might have
"G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
guaranteed that the code is valid UTF-8; one should not
make any assumptions regarding the structure or format of the code).
string code = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The code to set.
|
Returns
setCodeBytes(ByteString value)
public VerifyNotificationChannelRequest.Builder setCodeBytes(ByteString value)
Required. The verification code that was delivered to the channel as
a result of invoking the SendNotificationChannelVerificationCode
API
method or that was retrieved from a verified channel via
GetNotificationChannelVerificationCode
. For example, one might have
"G-123456" or "TKNZGhhd2EyN3I1MnRnMjRv" (in general, one is only
guaranteed that the code is valid UTF-8; one should not
make any assumptions regarding the structure or format of the code).
string code = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for code to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public VerifyNotificationChannelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setName(String value)
public VerifyNotificationChannelRequest.Builder setName(String value)
Required. The notification channel to verify.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The name to set.
|
Returns
setNameBytes(ByteString value)
public VerifyNotificationChannelRequest.Builder setNameBytes(ByteString value)
Required. The notification channel to verify.
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for name to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public VerifyNotificationChannelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final VerifyNotificationChannelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides