Class GetNotificationChannelVerificationCodeRequest.Builder (3.6.0)

public static final class GetNotificationChannelVerificationCodeRequest.Builder extends GeneratedMessageV3.Builder<GetNotificationChannelVerificationCodeRequest.Builder> implements GetNotificationChannelVerificationCodeRequestOrBuilder

The GetNotificationChannelVerificationCode request.

Protobuf type google.monitoring.v3.GetNotificationChannelVerificationCodeRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetNotificationChannelVerificationCodeRequest build()
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest

buildPartial()

public GetNotificationChannelVerificationCodeRequest buildPartial()
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest

clear()

public GetNotificationChannelVerificationCodeRequest.Builder clear()
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder
Overrides

clearExpireTime()

public GetNotificationChannelVerificationCodeRequest.Builder clearExpireTime()

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public GetNotificationChannelVerificationCodeRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder
Overrides

clearName()

public GetNotificationChannelVerificationCodeRequest.Builder clearName()

Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public GetNotificationChannelVerificationCodeRequest.Builder clone()
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder
Overrides

getDefaultInstanceForType()

public GetNotificationChannelVerificationCodeRequest getDefaultInstanceForType()
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.

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 for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for name.

hasExpireTime()

public boolean hasExpireTime()

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
boolean

Whether the expireTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeExpireTime(Timestamp value)

public GetNotificationChannelVerificationCodeRequest.Builder mergeExpireTime(Timestamp value)

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

mergeFrom(GetNotificationChannelVerificationCodeRequest other)

public GetNotificationChannelVerificationCodeRequest.Builder mergeFrom(GetNotificationChannelVerificationCodeRequest other)
Parameter
NameDescription
otherGetNotificationChannelVerificationCodeRequest
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetNotificationChannelVerificationCodeRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder
Overrides

setExpireTime(Timestamp value)

public GetNotificationChannelVerificationCodeRequest.Builder setExpireTime(Timestamp value)

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

setExpireTime(Timestamp.Builder builderForValue)

public GetNotificationChannelVerificationCodeRequest.Builder setExpireTime(Timestamp.Builder builderForValue)

The desired expiration time. If specified, the API will guarantee that the returned code will not be valid after the specified timestamp; however, the API cannot guarantee that the returned code will be valid for at least as long as the requested time (the API puts an upper bound on the amount of time for which a code may be valid). If omitted, a default expiration will be used, which may be less than the max permissible expiration (so specifying an expiration may extend the code's lifetime over omitting an expiration, even though the API does impose an upper limit on the maximum expiration that is permitted).

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetNotificationChannelVerificationCodeRequest.Builder setName(String value)

Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetNotificationChannelVerificationCodeRequest.Builder setNameBytes(ByteString value)

Required. The notification channel for which a verification code is to be generated and retrieved. This must name a channel that is already verified; if the specified channel is not verified, the request will fail.

string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder

This builder for chaining.

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

public GetNotificationChannelVerificationCodeRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetNotificationChannelVerificationCodeRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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