public static final class CreateAuthorizationPolicyRequest.Builder extends GeneratedMessageV3.Builder<CreateAuthorizationPolicyRequest.Builder> implements CreateAuthorizationPolicyRequestOrBuilder
Request used by the CreateAuthorizationPolicy method.
Protobuf type google.cloud.networksecurity.v1.CreateAuthorizationPolicyRequest
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAuthorizationPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public CreateAuthorizationPolicyRequest build()
Returns
buildPartial()
public CreateAuthorizationPolicyRequest buildPartial()
Returns
clear()
public CreateAuthorizationPolicyRequest.Builder clear()
Returns
Overrides
clearAuthorizationPolicy()
public CreateAuthorizationPolicyRequest.Builder clearAuthorizationPolicy()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
clearAuthorizationPolicyId()
public CreateAuthorizationPolicyRequest.Builder clearAuthorizationPolicyId()
Required. Short name of the AuthorizationPolicy resource to be created.
This value should be 1-63 characters long, containing only
letters, numbers, hyphens, and underscores, and should not start
with a number. E.g. "authz_policy".
string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
clearField(Descriptors.FieldDescriptor field)
public CreateAuthorizationPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAuthorizationPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearParent()
public CreateAuthorizationPolicyRequest.Builder clearParent()
Required. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
clone()
public CreateAuthorizationPolicyRequest.Builder clone()
Returns
Overrides
getAuthorizationPolicy()
public AuthorizationPolicy getAuthorizationPolicy()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getAuthorizationPolicyBuilder()
public AuthorizationPolicy.Builder getAuthorizationPolicyBuilder()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getAuthorizationPolicyId()
public String getAuthorizationPolicyId()
Required. Short name of the AuthorizationPolicy resource to be created.
This value should be 1-63 characters long, containing only
letters, numbers, hyphens, and underscores, and should not start
with a number. E.g. "authz_policy".
string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
String | The authorizationPolicyId.
|
getAuthorizationPolicyIdBytes()
public ByteString getAuthorizationPolicyIdBytes()
Required. Short name of the AuthorizationPolicy resource to be created.
This value should be 1-63 characters long, containing only
letters, numbers, hyphens, and underscores, and should not start
with a number. E.g. "authz_policy".
string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
ByteString | The bytes for authorizationPolicyId.
|
getAuthorizationPolicyOrBuilder()
public AuthorizationPolicyOrBuilder getAuthorizationPolicyOrBuilder()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
getDefaultInstanceForType()
public CreateAuthorizationPolicyRequest getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getParent()
public String getParent()
Required. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns
hasAuthorizationPolicy()
public boolean hasAuthorizationPolicy()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
boolean | Whether the authorizationPolicy field is set.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeAuthorizationPolicy(AuthorizationPolicy value)
public CreateAuthorizationPolicyRequest.Builder mergeAuthorizationPolicy(AuthorizationPolicy value)
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
mergeFrom(CreateAuthorizationPolicyRequest other)
public CreateAuthorizationPolicyRequest.Builder mergeFrom(CreateAuthorizationPolicyRequest other)
Parameter
Returns
public CreateAuthorizationPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public CreateAuthorizationPolicyRequest.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAuthorizationPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setAuthorizationPolicy(AuthorizationPolicy value)
public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy value)
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setAuthorizationPolicy(AuthorizationPolicy.Builder builderForValue)
public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicy(AuthorizationPolicy.Builder builderForValue)
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter
Returns
setAuthorizationPolicyId(String value)
public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicyId(String value)
Required. Short name of the AuthorizationPolicy resource to be created.
This value should be 1-63 characters long, containing only
letters, numbers, hyphens, and underscores, and should not start
with a number. E.g. "authz_policy".
string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | String
The authorizationPolicyId to set.
|
Returns
setAuthorizationPolicyIdBytes(ByteString value)
public CreateAuthorizationPolicyRequest.Builder setAuthorizationPolicyIdBytes(ByteString value)
Required. Short name of the AuthorizationPolicy resource to be created.
This value should be 1-63 characters long, containing only
letters, numbers, hyphens, and underscores, and should not start
with a number. E.g. "authz_policy".
string authorization_policy_id = 2 [(.google.api.field_behavior) = REQUIRED];
Parameter
Name | Description |
value | ByteString
The bytes for authorizationPolicyId to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAuthorizationPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setParent(String value)
public CreateAuthorizationPolicyRequest.Builder setParent(String value)
Required. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | String
The parent to set.
|
Returns
setParentBytes(ByteString value)
public CreateAuthorizationPolicyRequest.Builder setParentBytes(ByteString value)
Required. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Parameter
Name | Description |
value | ByteString
The bytes for parent to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAuthorizationPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAuthorizationPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides