- 0.56.0 (latest)
- 0.55.0
- 0.54.0
- 0.52.0
- 0.51.0
- 0.50.0
- 0.49.0
- 0.48.0
- 0.47.0
- 0.46.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.34.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.22.0
- 0.21.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.6.4
- 0.5.1
- 0.4.4
public static final class AuthorizationPolicy.Builder extends GeneratedMessageV3.Builder<AuthorizationPolicy.Builder> implements AuthorizationPolicyOrBuilder
AuthorizationPolicy is a resource that specifies how a server should authorize incoming connections. This resource in itself does not change the configuration unless it's attached to a target https proxy or endpoint config selector resource.
Protobuf type google.cloud.networksecurity.v1.AuthorizationPolicy
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AuthorizationPolicy.BuilderImplements
AuthorizationPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addAllRules(Iterable<? extends AuthorizationPolicy.Rule> values)
public AuthorizationPolicy.Builder addAllRules(Iterable<? extends AuthorizationPolicy.Rule> values)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Iterable<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.Rule> |
Type | Description |
AuthorizationPolicy.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AuthorizationPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AuthorizationPolicy.Builder |
addRules(AuthorizationPolicy.Rule value)
public AuthorizationPolicy.Builder addRules(AuthorizationPolicy.Rule value)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | AuthorizationPolicy.Rule |
Type | Description |
AuthorizationPolicy.Builder |
addRules(AuthorizationPolicy.Rule.Builder builderForValue)
public AuthorizationPolicy.Builder addRules(AuthorizationPolicy.Rule.Builder builderForValue)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
builderForValue | AuthorizationPolicy.Rule.Builder |
Type | Description |
AuthorizationPolicy.Builder |
addRules(int index, AuthorizationPolicy.Rule value)
public AuthorizationPolicy.Builder addRules(int index, AuthorizationPolicy.Rule value)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
value | AuthorizationPolicy.Rule |
Type | Description |
AuthorizationPolicy.Builder |
addRules(int index, AuthorizationPolicy.Rule.Builder builderForValue)
public AuthorizationPolicy.Builder addRules(int index, AuthorizationPolicy.Rule.Builder builderForValue)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
builderForValue | AuthorizationPolicy.Rule.Builder |
Type | Description |
AuthorizationPolicy.Builder |
addRulesBuilder()
public AuthorizationPolicy.Rule.Builder addRulesBuilder()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
AuthorizationPolicy.Rule.Builder |
addRulesBuilder(int index)
public AuthorizationPolicy.Rule.Builder addRulesBuilder(int index)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
AuthorizationPolicy.Rule.Builder |
build()
public AuthorizationPolicy build()
Type | Description |
AuthorizationPolicy |
buildPartial()
public AuthorizationPolicy buildPartial()
Type | Description |
AuthorizationPolicy |
clear()
public AuthorizationPolicy.Builder clear()
Type | Description |
AuthorizationPolicy.Builder |
clearAction()
public AuthorizationPolicy.Builder clearAction()
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
.google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
clearCreateTime()
public AuthorizationPolicy.Builder clearCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
AuthorizationPolicy.Builder |
clearDescription()
public AuthorizationPolicy.Builder clearDescription()
Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AuthorizationPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
AuthorizationPolicy.Builder |
clearLabels()
public AuthorizationPolicy.Builder clearLabels()
Type | Description |
AuthorizationPolicy.Builder |
clearName()
public AuthorizationPolicy.Builder clearName()
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public AuthorizationPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
AuthorizationPolicy.Builder |
clearRules()
public AuthorizationPolicy.Builder clearRules()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
AuthorizationPolicy.Builder |
clearUpdateTime()
public AuthorizationPolicy.Builder clearUpdateTime()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
AuthorizationPolicy.Builder |
clone()
public AuthorizationPolicy.Builder clone()
Type | Description |
AuthorizationPolicy.Builder |
containsLabels(String key)
public boolean containsLabels(String key)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
boolean |
getAction()
public AuthorizationPolicy.Action getAction()
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
.google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
AuthorizationPolicy.Action | The action. |
getActionValue()
public int getActionValue()
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
.google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
int | The enum numeric value on the wire for action. |
getCreateTime()
public Timestamp getCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public AuthorizationPolicy getDefaultInstanceForType()
Type | Description |
AuthorizationPolicy |
getDescription()
public String getDescription()
Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
String | The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()
Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
ByteString | The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
public int getLabelsCount()
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int |
getLabelsMap()
public Map<String,String> getLabelsMap()
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getName()
public String getName()
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Type | Description |
ByteString | The bytes for name. |
getRules(int index)
public AuthorizationPolicy.Rule getRules(int index)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
AuthorizationPolicy.Rule |
getRulesBuilder(int index)
public AuthorizationPolicy.Rule.Builder getRulesBuilder(int index)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
AuthorizationPolicy.Rule.Builder |
getRulesBuilderList()
public List<AuthorizationPolicy.Rule.Builder> getRulesBuilderList()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<Builder> |
getRulesCount()
public int getRulesCount()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
int |
getRulesList()
public List<AuthorizationPolicy.Rule> getRulesList()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<Rule> |
getRulesOrBuilder(int index)
public AuthorizationPolicy.RuleOrBuilder getRulesOrBuilder(int index)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
AuthorizationPolicy.RuleOrBuilder |
getRulesOrBuilderList()
public List<? extends AuthorizationPolicy.RuleOrBuilder> getRulesOrBuilderList()
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Type | Description |
List<? extends com.google.cloud.networksecurity.v1.AuthorizationPolicy.RuleOrBuilder> |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
TimestampOrBuilder |
hasCreateTime()
public boolean hasCreateTime()
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the createTime field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Type | Description |
boolean | Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeCreateTime(Timestamp value)
public AuthorizationPolicy.Builder mergeCreateTime(Timestamp value)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
AuthorizationPolicy.Builder |
mergeFrom(AuthorizationPolicy other)
public AuthorizationPolicy.Builder mergeFrom(AuthorizationPolicy other)
Name | Description |
other | AuthorizationPolicy |
Type | Description |
AuthorizationPolicy.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthorizationPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
AuthorizationPolicy.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public AuthorizationPolicy.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
AuthorizationPolicy.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AuthorizationPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AuthorizationPolicy.Builder |
mergeUpdateTime(Timestamp value)
public AuthorizationPolicy.Builder mergeUpdateTime(Timestamp value)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
AuthorizationPolicy.Builder |
putAllLabels(Map<String,String> values)
public AuthorizationPolicy.Builder putAllLabels(Map<String,String> values)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
values | Map<String,String> |
Type | Description |
AuthorizationPolicy.Builder |
putLabels(String key, String value)
public AuthorizationPolicy.Builder putLabels(String key, String value)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
value | String |
Type | Description |
AuthorizationPolicy.Builder |
removeLabels(String key)
public AuthorizationPolicy.Builder removeLabels(String key)
Optional. Set of label tags associated with the AuthorizationPolicy resource.
map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
key | String |
Type | Description |
AuthorizationPolicy.Builder |
removeRules(int index)
public AuthorizationPolicy.Builder removeRules(int index)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
Type | Description |
AuthorizationPolicy.Builder |
setAction(AuthorizationPolicy.Action value)
public AuthorizationPolicy.Builder setAction(AuthorizationPolicy.Action value)
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
.google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | AuthorizationPolicy.Action The action to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setActionValue(int value)
public AuthorizationPolicy.Builder setActionValue(int value)
Required. The action to take when a rule match is found. Possible values are "ALLOW" or "DENY".
.google.cloud.networksecurity.v1.AuthorizationPolicy.Action action = 6 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | int The enum numeric value on the wire for action to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setCreateTime(Timestamp value)
public AuthorizationPolicy.Builder setCreateTime(Timestamp value)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
AuthorizationPolicy.Builder |
setCreateTime(Timestamp.Builder builderForValue)
public AuthorizationPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
AuthorizationPolicy.Builder |
setDescription(String value)
public AuthorizationPolicy.Builder setDescription(String value)
Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | String The description to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setDescriptionBytes(ByteString value)
public AuthorizationPolicy.Builder setDescriptionBytes(ByteString value)
Optional. Free-text description of the resource.
string description = 2 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
value | ByteString The bytes for description to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AuthorizationPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
AuthorizationPolicy.Builder |
setName(String value)
public AuthorizationPolicy.Builder setName(String value)
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | String The name to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public AuthorizationPolicy.Builder setNameBytes(ByteString value)
Required. Name of the AuthorizationPolicy resource. It matches pattern
projects/{project}/locations/{location}/authorizationPolicies/<authorization_policy>
.
string name = 1 [(.google.api.field_behavior) = REQUIRED];
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
AuthorizationPolicy.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AuthorizationPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
AuthorizationPolicy.Builder |
setRules(int index, AuthorizationPolicy.Rule value)
public AuthorizationPolicy.Builder setRules(int index, AuthorizationPolicy.Rule value)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
value | AuthorizationPolicy.Rule |
Type | Description |
AuthorizationPolicy.Builder |
setRules(int index, AuthorizationPolicy.Rule.Builder builderForValue)
public AuthorizationPolicy.Builder setRules(int index, AuthorizationPolicy.Rule.Builder builderForValue)
Optional. List of rules to match. Note that at least one of the rules must match in
order for the action specified in the 'action' field to be taken. A rule is
a match if there is a matching source and destination. If left blank, the
action specified in the action
field will be applied on every request.
repeated .google.cloud.networksecurity.v1.AuthorizationPolicy.Rule rules = 7 [(.google.api.field_behavior) = OPTIONAL];
Name | Description |
index | int |
builderForValue | AuthorizationPolicy.Rule.Builder |
Type | Description |
AuthorizationPolicy.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final AuthorizationPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
AuthorizationPolicy.Builder |
setUpdateTime(Timestamp value)
public AuthorizationPolicy.Builder setUpdateTime(Timestamp value)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
value | Timestamp |
Type | Description |
AuthorizationPolicy.Builder |
setUpdateTime(Timestamp.Builder builderForValue)
public AuthorizationPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)
Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
Name | Description |
builderForValue | Builder |
Type | Description |
AuthorizationPolicy.Builder |