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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateAuthorizationPolicyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CreateAuthorizationPolicyRequest build()
buildPartial()
public CreateAuthorizationPolicyRequest buildPartial()
clear()
public CreateAuthorizationPolicyRequest.Builder clear()
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];
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];
clearField(Descriptors.FieldDescriptor field)
public CreateAuthorizationPolicyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateAuthorizationPolicyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public CreateAuthorizationPolicyRequest.Builder clone()
Overrides
getAuthorizationPolicy()
public AuthorizationPolicy getAuthorizationPolicy()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
getAuthorizationPolicyBuilder()
public AuthorizationPolicy.Builder getAuthorizationPolicyBuilder()
Required. AuthorizationPolicy resource to be created.
.google.cloud.networksecurity.v1.AuthorizationPolicy authorization_policy = 3 [(.google.api.field_behavior) = REQUIRED];
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];
getDefaultInstanceForType()
public CreateAuthorizationPolicyRequest getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(CreateAuthorizationPolicyRequest other)
public CreateAuthorizationPolicyRequest.Builder mergeFrom(CreateAuthorizationPolicyRequest other)
public CreateAuthorizationPolicyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CreateAuthorizationPolicyRequest.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateAuthorizationPolicyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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];
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.
|
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.
|
setField(Descriptors.FieldDescriptor field, Object value)
public CreateAuthorizationPolicyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateAuthorizationPolicyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateAuthorizationPolicyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides