Class VerifyNotificationChannelRequest.Builder (3.38.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VerifyNotificationChannelRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides

build()

public VerifyNotificationChannelRequest build()
Returns
TypeDescription
VerifyNotificationChannelRequest

buildPartial()

public VerifyNotificationChannelRequest buildPartial()
Returns
TypeDescription
VerifyNotificationChannelRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VerifyNotificationChannelRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
VerifyNotificationChannelRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VerifyNotificationChannelRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides

clone()

public VerifyNotificationChannelRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for code.

getDefaultInstanceForType()

public VerifyNotificationChannelRequest getDefaultInstanceForType()
Returns
TypeDescription
VerifyNotificationChannelRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VerifyNotificationChannelRequest other)

public VerifyNotificationChannelRequest.Builder mergeFrom(VerifyNotificationChannelRequest other)
Parameter
NameDescription
otherVerifyNotificationChannelRequest
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public VerifyNotificationChannelRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public VerifyNotificationChannelRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VerifyNotificationChannelRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The code to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for code to set.

Returns
TypeDescription
VerifyNotificationChannelRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public VerifyNotificationChannelRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VerifyNotificationChannelRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VerifyNotificationChannelRequest.Builder
Overrides