Class ApproveApprovalRequestMessage.Builder (2.10.0)

public static final class ApproveApprovalRequestMessage.Builder extends GeneratedMessageV3.Builder<ApproveApprovalRequestMessage.Builder> implements ApproveApprovalRequestMessageOrBuilder

Request to approve an ApprovalRequest.

Protobuf type google.cloud.accessapproval.v1.ApproveApprovalRequestMessage

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public ApproveApprovalRequestMessage build()
Returns
TypeDescription
ApproveApprovalRequestMessage

buildPartial()

public ApproveApprovalRequestMessage buildPartial()
Returns
TypeDescription
ApproveApprovalRequestMessage

clear()

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

clearExpireTime()

public ApproveApprovalRequestMessage.Builder clearExpireTime()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public ApproveApprovalRequestMessage.Builder clearName()

Name of the approval request to approve.

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

Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public ApproveApprovalRequestMessage getDefaultInstanceForType()
Returns
TypeDescription
ApproveApprovalRequestMessage

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpireTime()

public Timestamp getExpireTime()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Timestamp

The expireTime.

getExpireTimeBuilder()

public Timestamp.Builder getExpireTimeBuilder()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
Builder

getExpireTimeOrBuilder()

public TimestampOrBuilder getExpireTimeOrBuilder()

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getName()

public String getName()

Name of the approval request to approve.

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

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Name of the approval request to approve.

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

Returns
TypeDescription
ByteString

The bytes for name.

hasExpireTime()

public boolean hasExpireTime()

The expiration time of this approval.

.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 ApproveApprovalRequestMessage.Builder mergeExpireTime(Timestamp value)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

mergeFrom(ApproveApprovalRequestMessage other)

public ApproveApprovalRequestMessage.Builder mergeFrom(ApproveApprovalRequestMessage other)
Parameter
NameDescription
otherApproveApprovalRequestMessage
Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setExpireTime(Timestamp value)

public ApproveApprovalRequestMessage.Builder setExpireTime(Timestamp value)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

setExpireTime(Timestamp.Builder builderForValue)

public ApproveApprovalRequestMessage.Builder setExpireTime(Timestamp.Builder builderForValue)

The expiration time of this approval.

.google.protobuf.Timestamp expire_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public ApproveApprovalRequestMessage.Builder setName(String value)

Name of the approval request to approve.

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

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public ApproveApprovalRequestMessage.Builder setNameBytes(ByteString value)

Name of the approval request to approve.

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

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
ApproveApprovalRequestMessage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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