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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public GetSecurityPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public GetSecurityPolicyRequest build()
Returns
buildPartial()
public GetSecurityPolicyRequest buildPartial()
Returns
clear()
public GetSecurityPolicyRequest.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public GetSecurityPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public GetSecurityPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearProject()
public GetSecurityPolicyRequest.Builder clearProject()
Project ID for this request.
string project = 227560217 [(.google.api.field_behavior) = REQUIRED];
Returns
clearSecurityPolicy()
public GetSecurityPolicyRequest.Builder clearSecurityPolicy()
Name of the security policy to get.
string security_policy = 171082513 [(.google.api.field_behavior) = REQUIRED];
Returns
clone()
public GetSecurityPolicyRequest.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public GetSecurityPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(GetSecurityPolicyRequest other)
public GetSecurityPolicyRequest.Builder mergeFrom(GetSecurityPolicyRequest other)
Parameter
Returns
public GetSecurityPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public GetSecurityPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final GetSecurityPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public GetSecurityPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
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
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public GetSecurityPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
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
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
setUnknownFields(UnknownFieldSet unknownFields)
public final GetSecurityPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides