Class GetResourcePolicyRequest.Builder (1.32.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetResourcePolicyRequest build()
Returns
TypeDescription
GetResourcePolicyRequest

buildPartial()

public GetResourcePolicyRequest buildPartial()
Returns
TypeDescription
GetResourcePolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetResourcePolicyRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
GetResourcePolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetResourcePolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetResourcePolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getProject()

public String getProject()

Project ID for this request.

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

Returns
TypeDescription
String

The project.

getProjectBytes()

public ByteString getProjectBytes()

Project ID for this request.

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

Returns
TypeDescription
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
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region for this request.

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

Returns
TypeDescription
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
TypeDescription
String

The resourcePolicy.

getResourcePolicyBytes()

public ByteString getResourcePolicyBytes()

Name of the resource policy to retrieve.

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

Returns
TypeDescription
ByteString

The bytes for resourcePolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetResourcePolicyRequest other)

public GetResourcePolicyRequest.Builder mergeFrom(GetResourcePolicyRequest other)
Parameter
NameDescription
otherGetResourcePolicyRequest
Returns
TypeDescription
GetResourcePolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The project to set.

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

The bytes for project to set.

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

The region to set.

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

The bytes for region to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The resourcePolicy to set.

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

The bytes for resourcePolicy to set.

Returns
TypeDescription
GetResourcePolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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