Class CreateAuthorizationPolicyRequest.Builder (0.12.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateAuthorizationPolicyRequest build()
Returns
TypeDescription
CreateAuthorizationPolicyRequest

buildPartial()

public CreateAuthorizationPolicyRequest buildPartial()
Returns
TypeDescription
CreateAuthorizationPolicyRequest

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateAuthorizationPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

clone()

public CreateAuthorizationPolicyRequest.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
AuthorizationPolicyOrBuilder

getDefaultInstanceForType()

public CreateAuthorizationPolicyRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateAuthorizationPolicyRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the authorizationPolicy field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueAuthorizationPolicy
Returns
TypeDescription
CreateAuthorizationPolicyRequest.Builder

mergeFrom(CreateAuthorizationPolicyRequest other)

public CreateAuthorizationPolicyRequest.Builder mergeFrom(CreateAuthorizationPolicyRequest other)
Parameter
NameDescription
otherCreateAuthorizationPolicyRequest
Returns
TypeDescription
CreateAuthorizationPolicyRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateAuthorizationPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueAuthorizationPolicy
Returns
TypeDescription
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
NameDescription
builderForValueAuthorizationPolicy.Builder
Returns
TypeDescription
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
NameDescription
valueString

The authorizationPolicyId to set.

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

The bytes for authorizationPolicyId to set.

Returns
TypeDescription
CreateAuthorizationPolicyRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

The parent to set.

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

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateAuthorizationPolicyRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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