Class SACAttachment.Builder (0.96.0)

public static final class SACAttachment.Builder extends GeneratedMessage.Builder<SACAttachment.Builder> implements SACAttachmentOrBuilder

Represents a Secure Access Connect (SAC) attachment resource.

A Secure Access Connect attachment enables NCC Gateway to process traffic with an SSE product.

Protobuf type google.cloud.networksecurity.v1.SACAttachment

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public SACAttachment build()
Returns
Type Description
SACAttachment

buildPartial()

public SACAttachment buildPartial()
Returns
Type Description
SACAttachment

clear()

public SACAttachment.Builder clear()
Returns
Type Description
SACAttachment.Builder
Overrides

clearCreateTime()

public SACAttachment.Builder clearCreateTime()

Output only. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SACAttachment.Builder

clearLabels()

public SACAttachment.Builder clearLabels()
Returns
Type Description
SACAttachment.Builder

clearName()

public SACAttachment.Builder clearName()

Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

clearNccGateway()

public SACAttachment.Builder clearNccGateway()

Required. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.

string ncc_gateway = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

clearSacRealm()

public SACAttachment.Builder clearSacRealm()

Required. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.

string sac_realm = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

clearState()

public SACAttachment.Builder clearState()

Output only. State of the attachment.

.google.cloud.networksecurity.v1.SACAttachment.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

clearUpdateTime()

public SACAttachment.Builder clearUpdateTime()

Output only. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SACAttachment.Builder

containsLabels(String key)

public boolean containsLabels(String key)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCreateTime()

public Timestamp getCreateTime()

Output only. Timestamp when the attachment 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. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public SACAttachment getDefaultInstanceForType()
Returns
Type Description
SACAttachment

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getName()

public String getName()

Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getNccGateway()

public String getNccGateway()

Required. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.

string ncc_gateway = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The nccGateway.

getNccGatewayBytes()

public ByteString getNccGatewayBytes()

Required. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.

string ncc_gateway = 6 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for nccGateway.

getSacRealm()

public String getSacRealm()

Required. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.

string sac_realm = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The sacRealm.

getSacRealmBytes()

public ByteString getSacRealmBytes()

Required. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.

string sac_realm = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for sacRealm.

getState()

public SACAttachment.State getState()

Output only. State of the attachment.

.google.cloud.networksecurity.v1.SACAttachment.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
SACAttachment.State

The state.

getStateValue()

public int getStateValue()

Output only. State of the attachment.

.google.cloud.networksecurity.v1.SACAttachment.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. Timestamp when the attachment was last 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. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

Output only. Timestamp when the attachment 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. Timestamp when the attachment was last 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
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public SACAttachment.Builder mergeCreateTime(Timestamp value)

Output only. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SACAttachment.Builder

mergeFrom(SACAttachment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUpdateTime(Timestamp value)

public SACAttachment.Builder mergeUpdateTime(Timestamp value)

Output only. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SACAttachment.Builder

putAllLabels(Map<String,String> values)

public SACAttachment.Builder putAllLabels(Map<String,String> values)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Map<String,String>
Returns
Type Description
SACAttachment.Builder

putLabels(String key, String value)

public SACAttachment.Builder putLabels(String key, String value)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
value String
Returns
Type Description
SACAttachment.Builder

removeLabels(String key)

public SACAttachment.Builder removeLabels(String key)

Optional. Optional list of labels applied to the resource.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
SACAttachment.Builder

setCreateTime(Timestamp value)

public SACAttachment.Builder setCreateTime(Timestamp value)

Output only. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SACAttachment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public SACAttachment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the attachment was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SACAttachment.Builder

setName(String value)

public SACAttachment.Builder setName(String value)

Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public SACAttachment.Builder setNameBytes(ByteString value)

Identifier. Resource name, in the form projects/{project}/locations/{location}/sacAttachments/{sac_attachment}.

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setNccGateway(String value)

public SACAttachment.Builder setNccGateway(String value)

Required. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.

string ncc_gateway = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The nccGateway to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setNccGatewayBytes(ByteString value)

public SACAttachment.Builder setNccGatewayBytes(ByteString value)

Required. NCC Gateway associated with the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/spokes/{ncc_gateway}.

string ncc_gateway = 6 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for nccGateway to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setSacRealm(String value)

public SACAttachment.Builder setSacRealm(String value)

Required. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.

string sac_realm = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The sacRealm to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setSacRealmBytes(ByteString value)

public SACAttachment.Builder setSacRealmBytes(ByteString value)

Required. SAC Realm which owns the attachment. This can be input as an ID or a full resource name. The output always has the form projects/{project_number}/locations/{location}/sacRealms/{sac_realm}.

string sac_realm = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for sacRealm to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setState(SACAttachment.State value)

public SACAttachment.Builder setState(SACAttachment.State value)

Output only. State of the attachment.

.google.cloud.networksecurity.v1.SACAttachment.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value SACAttachment.State

The state to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setStateValue(int value)

public SACAttachment.Builder setStateValue(int value)

Output only. State of the attachment.

.google.cloud.networksecurity.v1.SACAttachment.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for state to set.

Returns
Type Description
SACAttachment.Builder

This builder for chaining.

setUpdateTime(Timestamp value)

public SACAttachment.Builder setUpdateTime(Timestamp value)

Output only. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
SACAttachment.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public SACAttachment.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. Timestamp when the attachment was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SACAttachment.Builder