Class GetApprovalRequestMessage.Builder (2.45.0)

public static final class GetApprovalRequestMessage.Builder extends GeneratedMessageV3.Builder<GetApprovalRequestMessage.Builder> implements GetApprovalRequestMessageOrBuilder

Request to get an approval request.

Protobuf type google.cloud.accessapproval.v1.GetApprovalRequestMessage

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetApprovalRequestMessage build()
Returns
Type Description
GetApprovalRequestMessage

buildPartial()

public GetApprovalRequestMessage buildPartial()
Returns
Type Description
GetApprovalRequestMessage

clear()

public GetApprovalRequestMessage.Builder clear()
Returns
Type Description
GetApprovalRequestMessage.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public GetApprovalRequestMessage.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
GetApprovalRequestMessage.Builder
Overrides

clearName()

public GetApprovalRequestMessage.Builder clearName()

The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"

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

Returns
Type Description
GetApprovalRequestMessage.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetApprovalRequestMessage getDefaultInstanceForType()
Returns
Type Description
GetApprovalRequestMessage

getDescriptorForType()

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

getName()

public String getName()

The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"

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

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"

string name = 1 [(.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(GetApprovalRequestMessage other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final GetApprovalRequestMessage.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
GetApprovalRequestMessage.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public GetApprovalRequestMessage.Builder setName(String value)

The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"

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

Parameter
Name Description
value String

The name to set.

Returns
Type Description
GetApprovalRequestMessage.Builder

This builder for chaining.

setNameBytes(ByteString value)

public GetApprovalRequestMessage.Builder setNameBytes(ByteString value)

The name of the approval request to retrieve. Format: "{projects|folders|organizations}/{id}/approvalRequests/{approval_request}"

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

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
GetApprovalRequestMessage.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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