Class CreateAuthorizationPolicyRequest.Builder (0.57.0)

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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAuthorizationPolicyRequest build()
Returns
Type Description
CreateAuthorizationPolicyRequest

buildPartial()

public CreateAuthorizationPolicyRequest buildPartial()
Returns
Type Description
CreateAuthorizationPolicyRequest

clear()

public CreateAuthorizationPolicyRequest.Builder clear()
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder
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
Type Description
CreateAuthorizationPolicyRequest.Builder

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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAuthorizationPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder
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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

clone()

public CreateAuthorizationPolicyRequest.Builder clone()
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder
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
Type Description
AuthorizationPolicy

The authorizationPolicy.

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
Type Description
AuthorizationPolicy.Builder

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
Type Description
AuthorizationPolicyOrBuilder

getDefaultInstanceForType()

public CreateAuthorizationPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateAuthorizationPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
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
Type Description
ByteString

The bytes for parent.

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
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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
Name Description
value AuthorizationPolicy
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder

mergeFrom(CreateAuthorizationPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAuthorizationPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder
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
Name Description
value AuthorizationPolicy
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder

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
Name Description
builderForValue AuthorizationPolicy.Builder
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder

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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public CreateAuthorizationPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateAuthorizationPolicyRequest.Builder
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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

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
Type Description
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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