Class GetApprovalRequestMessage.Builder (2.17.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetApprovalRequestMessage build()
Returns
TypeDescription
GetApprovalRequestMessage

buildPartial()

public GetApprovalRequestMessage buildPartial()
Returns
TypeDescription
GetApprovalRequestMessage

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public GetApprovalRequestMessage getDefaultInstanceForType()
Returns
TypeDescription
GetApprovalRequestMessage

getDescriptorForType()

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

public GetApprovalRequestMessage.Builder mergeFrom(GetApprovalRequestMessage other)
Parameter
NameDescription
otherGetApprovalRequestMessage
Returns
TypeDescription
GetApprovalRequestMessage.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The name to set.

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

The bytes for name to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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