Class AgentGateway.NetworkConfig.Egress.TrustConfig.Builder (0.50.0)

public static final class AgentGateway.NetworkConfig.Egress.TrustConfig.Builder extends GeneratedMessage.Builder<AgentGateway.NetworkConfig.Egress.TrustConfig.Builder> implements AgentGateway.NetworkConfig.Egress.TrustConfigOrBuilder

TrustConfig defines the trust configuration for egress.

Protobuf type google.cloud.networkservices.v1.AgentGateway.NetworkConfig.Egress.TrustConfig

Static Methods

getDescriptor()

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

Methods

addAllPemCertificates(Iterable<String> values)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder addAllPemCertificates(Iterable<String> values)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
values Iterable<String>

The pemCertificates to add.

Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

This builder for chaining.

addPemCertificates(String value)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder addPemCertificates(String value)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The pemCertificates to add.

Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

This builder for chaining.

addPemCertificatesBytes(ByteString value)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder addPemCertificatesBytes(ByteString value)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes of the pemCertificates to add.

Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

This builder for chaining.

build()

public AgentGateway.NetworkConfig.Egress.TrustConfig build()
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig

buildPartial()

public AgentGateway.NetworkConfig.Egress.TrustConfig buildPartial()
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig

clear()

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder clear()
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder
Overrides

clearPemCertificates()

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder clearPemCertificates()

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public AgentGateway.NetworkConfig.Egress.TrustConfig getDefaultInstanceForType()
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig

getDescriptorForType()

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

getPemCertificates(int index)

public String getPemCertificates(int index)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The pemCertificates at the given index.

getPemCertificatesBytes(int index)

public ByteString getPemCertificatesBytes(int index)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the pemCertificates at the given index.

getPemCertificatesCount()

public int getPemCertificatesCount()

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The count of pemCertificates.

getPemCertificatesList()

public ProtocolStringList getPemCertificatesList()

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ProtocolStringList

A list containing the pemCertificates.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AgentGateway.NetworkConfig.Egress.TrustConfig other)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder mergeFrom(AgentGateway.NetworkConfig.Egress.TrustConfig other)
Parameter
Name Description
other AgentGateway.NetworkConfig.Egress.TrustConfig
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder
Overrides

setPemCertificates(int index, String value)

public AgentGateway.NetworkConfig.Egress.TrustConfig.Builder setPemCertificates(int index, String value)

Required. PEM encoded root certificates used to validate the identity of the upstream servers/destinations during egress connections.

repeated string pem_certificates = 1 [(.google.api.field_behavior) = REQUIRED];

Parameters
Name Description
index int

The index to set the value at.

value String

The pemCertificates to set.

Returns
Type Description
AgentGateway.NetworkConfig.Egress.TrustConfig.Builder

This builder for chaining.