Class GetResourcePolicyRequest.Builder (1.61.0)

public static final class GetResourcePolicyRequest.Builder extends GeneratedMessageV3.Builder<GetResourcePolicyRequest.Builder> implements GetResourcePolicyRequestOrBuilder

A request message for ResourcePolicies.Get. See the method description for details.

Protobuf type google.cloud.compute.v1.GetResourcePolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetResourcePolicyRequest build()
Returns
Type Description
GetResourcePolicyRequest

buildPartial()

public GetResourcePolicyRequest buildPartial()
Returns
Type Description
GetResourcePolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetResourcePolicyRequest.Builder clearProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

clearRegion()

public GetResourcePolicyRequest.Builder clearRegion()

Name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

clearResourcePolicy()

public GetResourcePolicyRequest.Builder clearResourcePolicy()

Name of the resource policy to retrieve.

string resource_policy = 159240835 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetResourcePolicyRequest getDefaultInstanceForType()
Returns
Type Description
GetResourcePolicyRequest

getDescriptorForType()

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

getProject()

public String getProject()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for project.

getRegion()

public String getRegion()

Name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for region.

getResourcePolicy()

public String getResourcePolicy()

Name of the resource policy to retrieve.

string resource_policy = 159240835 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The resourcePolicy.

getResourcePolicyBytes()

public ByteString getResourcePolicyBytes()

Name of the resource policy to retrieve.

string resource_policy = 159240835 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for resourcePolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetResourcePolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetResourcePolicyRequest.Builder setProject(String value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The project to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetResourcePolicyRequest.Builder setProjectBytes(ByteString value)

Project ID for this request.

string project = 227560217 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for project to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

setRegion(String value)

public GetResourcePolicyRequest.Builder setRegion(String value)

Name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The region to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetResourcePolicyRequest.Builder setRegionBytes(ByteString value)

Name of the region for this request.

string region = 138946292 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for region to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

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

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

setResourcePolicy(String value)

public GetResourcePolicyRequest.Builder setResourcePolicy(String value)

Name of the resource policy to retrieve.

string resource_policy = 159240835 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The resourcePolicy to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

setResourcePolicyBytes(ByteString value)

public GetResourcePolicyRequest.Builder setResourcePolicyBytes(ByteString value)

Name of the resource policy to retrieve.

string resource_policy = 159240835 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for resourcePolicy to set.

Returns
Type Description
GetResourcePolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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