Class GetRegionSecurityPolicyRequest.Builder (1.51.0)

public static final class GetRegionSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetRegionSecurityPolicyRequest.Builder> implements GetRegionSecurityPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetRegionSecurityPolicyRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetRegionSecurityPolicyRequest build()
Returns
TypeDescription
GetRegionSecurityPolicyRequest

buildPartial()

public GetRegionSecurityPolicyRequest buildPartial()
Returns
TypeDescription
GetRegionSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetRegionSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

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

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearRegion()

public GetRegionSecurityPolicyRequest.Builder clearRegion()

Name of the region scoping this request.

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

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public GetRegionSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to get.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetRegionSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetRegionSecurityPolicyRequest

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 scoping this request.

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

Returns
TypeDescription
String

The region.

getRegionBytes()

public ByteString getRegionBytes()

Name of the region scoping this request.

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

Returns
TypeDescription
ByteString

The bytes for region.

getSecurityPolicy()

public String getSecurityPolicy()

Name of the security policy to get.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

Name of the security policy to get.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for securityPolicy.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(GetRegionSecurityPolicyRequest other)

public GetRegionSecurityPolicyRequest.Builder mergeFrom(GetRegionSecurityPolicyRequest other)
Parameter
NameDescription
otherGetRegionSecurityPolicyRequest
Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

public GetRegionSecurityPolicyRequest.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
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

setProjectBytes(ByteString value)

public GetRegionSecurityPolicyRequest.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
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegion(String value)

public GetRegionSecurityPolicyRequest.Builder setRegion(String value)

Name of the region scoping this request.

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

Parameter
NameDescription
valueString

The region to set.

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

setRegionBytes(ByteString value)

public GetRegionSecurityPolicyRequest.Builder setRegionBytes(ByteString value)

Name of the region scoping this request.

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

Parameter
NameDescription
valueByteString

The bytes for region to set.

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

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

public GetRegionSecurityPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder
Overrides

setSecurityPolicy(String value)

public GetRegionSecurityPolicyRequest.Builder setSecurityPolicy(String value)

Name of the security policy to get.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The securityPolicy to set.

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public GetRegionSecurityPolicyRequest.Builder setSecurityPolicyBytes(ByteString value)

Name of the security policy to get.

string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for securityPolicy to set.

Returns
TypeDescription
GetRegionSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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