Class GetSecurityPolicyRequest.Builder (1.56.0)

public static final class GetSecurityPolicyRequest.Builder extends GeneratedMessageV3.Builder<GetSecurityPolicyRequest.Builder> implements GetSecurityPolicyRequestOrBuilder

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

Protobuf type google.cloud.compute.v1.GetSecurityPolicyRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSecurityPolicyRequest build()
Returns
Type Description
GetSecurityPolicyRequest

buildPartial()

public GetSecurityPolicyRequest buildPartial()
Returns
Type Description
GetSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

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

Returns
Type Description
GetSecurityPolicyRequest.Builder

This builder for chaining.

clearSecurityPolicy()

public GetSecurityPolicyRequest.Builder clearSecurityPolicy()

Name of the security policy to get.

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

Returns
Type Description
GetSecurityPolicyRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetSecurityPolicyRequest getDefaultInstanceForType()
Returns
Type Description
GetSecurityPolicyRequest

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.

getSecurityPolicy()

public String getSecurityPolicy()

Name of the security policy to get.

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

Returns
Type Description
String

The securityPolicy.

getSecurityPolicyBytes()

public ByteString getSecurityPolicyBytes()

Name of the security policy to get.

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

Returns
Type Description
ByteString

The bytes for securityPolicy.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GetSecurityPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setProject(String value)

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

This builder for chaining.

setProjectBytes(ByteString value)

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

This builder for chaining.

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

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

setSecurityPolicy(String value)

public GetSecurityPolicyRequest.Builder setSecurityPolicy(String value)

Name of the security policy to get.

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

Parameter
Name Description
value String

The securityPolicy to set.

Returns
Type Description
GetSecurityPolicyRequest.Builder

This builder for chaining.

setSecurityPolicyBytes(ByteString value)

public GetSecurityPolicyRequest.Builder setSecurityPolicyBytes(ByteString value)

Name of the security policy to get.

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

Parameter
Name Description
value ByteString

The bytes for securityPolicy to set.

Returns
Type Description
GetSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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