Class GetResourcePolicyRequest.Builder (1.93.0)

public static final class GetResourcePolicyRequest.Builder extends GeneratedMessage.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

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

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.

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 GeneratedMessage.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

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.

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.