Class VerifyNotificationChannelRequest.Builder (3.50.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VerifyNotificationChannelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides

build()

public VerifyNotificationChannelRequest build()
Returns
Type Description
VerifyNotificationChannelRequest

buildPartial()

public VerifyNotificationChannelRequest buildPartial()
Returns
Type Description
VerifyNotificationChannelRequest

clear()

public VerifyNotificationChannelRequest.Builder clear()
Returns
Type Description
VerifyNotificationChannelRequest.Builder
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
Type Description
VerifyNotificationChannelRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VerifyNotificationChannelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VerifyNotificationChannelRequest.Builder
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
Type Description
VerifyNotificationChannelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VerifyNotificationChannelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides

clone()

public VerifyNotificationChannelRequest.Builder clone()
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides

getCode()

public String 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
Type Description
ByteString

The bytes for code.

getDefaultInstanceForType()

public VerifyNotificationChannelRequest getDefaultInstanceForType()
Returns
Type Description
VerifyNotificationChannelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String 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
Type Description
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VerifyNotificationChannelRequest other)

public VerifyNotificationChannelRequest.Builder mergeFrom(VerifyNotificationChannelRequest other)
Parameter
Name Description
other VerifyNotificationChannelRequest
Returns
Type Description
VerifyNotificationChannelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public VerifyNotificationChannelRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

This builder for chaining.

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
Type Description
VerifyNotificationChannelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VerifyNotificationChannelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
VerifyNotificationChannelRequest.Builder
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
Type Description
VerifyNotificationChannelRequest.Builder

This builder for chaining.

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
Type Description
VerifyNotificationChannelRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public VerifyNotificationChannelRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VerifyNotificationChannelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
VerifyNotificationChannelRequest.Builder
Overrides