public static final class GatewaySecurityPolicy.Builder extends GeneratedMessage.Builder<GatewaySecurityPolicy.Builder> implements GatewaySecurityPolicyOrBuilderThe GatewaySecurityPolicy resource contains a collection of GatewaySecurityPolicyRules and associated metadata.
Protobuf type google.cloud.networksecurity.v1.GatewaySecurityPolicy
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GatewaySecurityPolicy.BuilderImplements
GatewaySecurityPolicyOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GatewaySecurityPolicy build()| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy |
|
buildPartial()
public GatewaySecurityPolicy buildPartial()| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy |
|
clear()
public GatewaySecurityPolicy.Builder clear()| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
clearCreateTime()
public GatewaySecurityPolicy.Builder clearCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
clearDescription()
public GatewaySecurityPolicy.Builder clearDescription()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
clearName()
public GatewaySecurityPolicy.Builder clearName()Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
clearTlsInspectionPolicy()
public GatewaySecurityPolicy.Builder clearTlsInspectionPolicy()Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
clearUpdateTime()
public GatewaySecurityPolicy.Builder clearUpdateTime()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
getCreateTime()
public Timestamp getCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public GatewaySecurityPolicy getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy |
|
getDescription()
public String getDescription()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public ByteString getDescriptionBytes()Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getName()
public String getName()Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getTlsInspectionPolicy()
public String getTlsInspectionPolicy()Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The tlsInspectionPolicy. |
getTlsInspectionPolicyBytes()
public ByteString getTlsInspectionPolicyBytes()Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for tlsInspectionPolicy. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
hasCreateTime()
public boolean hasCreateTime()Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| 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 = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public GatewaySecurityPolicy.Builder mergeCreateTime(Timestamp value)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
mergeFrom(GatewaySecurityPolicy other)
public GatewaySecurityPolicy.Builder mergeFrom(GatewaySecurityPolicy other)| Parameter | |
|---|---|
| Name | Description |
other |
GatewaySecurityPolicy |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GatewaySecurityPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GatewaySecurityPolicy.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
mergeUpdateTime(Timestamp value)
public GatewaySecurityPolicy.Builder mergeUpdateTime(Timestamp value)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
setCreateTime(Timestamp value)
public GatewaySecurityPolicy.Builder setCreateTime(Timestamp value)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public GatewaySecurityPolicy.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the resource was created.
.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
setDescription(String value)
public GatewaySecurityPolicy.Builder setDescription(String value)Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe description to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setDescriptionBytes(ByteString value)
public GatewaySecurityPolicy.Builder setDescriptionBytes(ByteString value)Optional. Free-text description of the resource.
string description = 4 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for description to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setName(String value)
public GatewaySecurityPolicy.Builder setName(String value)Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public GatewaySecurityPolicy.Builder setNameBytes(ByteString value)Required. Name of the resource. Name is of the form projects/{project}/locations/{location}/gatewaySecurityPolicies/{gateway_security_policy} gateway_security_policy should match the pattern:(^a-z?$).
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setTlsInspectionPolicy(String value)
public GatewaySecurityPolicy.Builder setTlsInspectionPolicy(String value)Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe tlsInspectionPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setTlsInspectionPolicyBytes(ByteString value)
public GatewaySecurityPolicy.Builder setTlsInspectionPolicyBytes(ByteString value)Optional. Name of a TLS Inspection Policy resource that defines how TLS inspection will be performed for any rule(s) which enables it.
string tls_inspection_policy = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for tlsInspectionPolicy to set. |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public GatewaySecurityPolicy.Builder setUpdateTime(Timestamp value)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public GatewaySecurityPolicy.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The timestamp when the resource was updated.
.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
GatewaySecurityPolicy.Builder |
|