Class GetSecurityPolicyRequest.Builder (1.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public GetSecurityPolicyRequest build()
Returns
TypeDescription
GetSecurityPolicyRequest

buildPartial()

public GetSecurityPolicyRequest buildPartial()
Returns
TypeDescription
GetSecurityPolicyRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProject()

public GetSecurityPolicyRequest.Builder clearProject()

Project ID for this request.

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

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

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public GetSecurityPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
GetSecurityPolicyRequest

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.

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(GetSecurityPolicyRequest other)

public GetSecurityPolicyRequest.Builder mergeFrom(GetSecurityPolicyRequest other)
Parameter
NameDescription
otherGetSecurityPolicyRequest
Returns
TypeDescription
GetSecurityPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

The project to set.

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

The bytes for project to set.

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

The securityPolicy to set.

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

The bytes for securityPolicy to set.

Returns
TypeDescription
GetSecurityPolicyRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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