Class Instance.PrivateConfig.Builder (0.21.0)

public static final class Instance.PrivateConfig.Builder extends GeneratedMessageV3.Builder<Instance.PrivateConfig.Builder> implements Instance.PrivateConfigOrBuilder

PrivateConfig includes settings for private instance.

Protobuf type google.cloud.securesourcemanager.v1.Instance.PrivateConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Instance.PrivateConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

build()

public Instance.PrivateConfig build()
Returns
Type Description
Instance.PrivateConfig

buildPartial()

public Instance.PrivateConfig buildPartial()
Returns
Type Description
Instance.PrivateConfig

clear()

public Instance.PrivateConfig.Builder clear()
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

clearCaPool()

public Instance.PrivateConfig.Builder clearCaPool()

Required. Immutable. CA pool resource, resource must in the format of projects/{project}/locations/{location}/caPools/{ca_pool}.

string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Instance.PrivateConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

clearHttpServiceAttachment()

public Instance.PrivateConfig.Builder clearHttpServiceAttachment()

Output only. Service Attachment for HTTP, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

clearIsPrivate()

public Instance.PrivateConfig.Builder clearIsPrivate()

Required. Immutable. Indicate if it's private instance.

bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Instance.PrivateConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

clearSshServiceAttachment()

public Instance.PrivateConfig.Builder clearSshServiceAttachment()

Output only. Service Attachment for SSH, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

clone()

public Instance.PrivateConfig.Builder clone()
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

getCaPool()

public String getCaPool()

Required. Immutable. CA pool resource, resource must in the format of projects/{project}/locations/{location}/caPools/{ca_pool}.

string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The caPool.

getCaPoolBytes()

public ByteString getCaPoolBytes()

Required. Immutable. CA pool resource, resource must in the format of projects/{project}/locations/{location}/caPools/{ca_pool}.

string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for caPool.

getDefaultInstanceForType()

public Instance.PrivateConfig getDefaultInstanceForType()
Returns
Type Description
Instance.PrivateConfig

getDescriptorForType()

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

getHttpServiceAttachment()

public String getHttpServiceAttachment()

Output only. Service Attachment for HTTP, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The httpServiceAttachment.

getHttpServiceAttachmentBytes()

public ByteString getHttpServiceAttachmentBytes()

Output only. Service Attachment for HTTP, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for httpServiceAttachment.

getIsPrivate()

public boolean getIsPrivate()

Required. Immutable. Indicate if it's private instance.

bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

The isPrivate.

getSshServiceAttachment()

public String getSshServiceAttachment()

Output only. Service Attachment for SSH, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The sshServiceAttachment.

getSshServiceAttachmentBytes()

public ByteString getSshServiceAttachmentBytes()

Output only. Service Attachment for SSH, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for sshServiceAttachment.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Instance.PrivateConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PrivateConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

setCaPool(String value)

public Instance.PrivateConfig.Builder setCaPool(String value)

Required. Immutable. CA pool resource, resource must in the format of projects/{project}/locations/{location}/caPools/{ca_pool}.

string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The caPool to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setCaPoolBytes(ByteString value)

public Instance.PrivateConfig.Builder setCaPoolBytes(ByteString value)

Required. Immutable. CA pool resource, resource must in the format of projects/{project}/locations/{location}/caPools/{ca_pool}.

string ca_pool = 2 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for caPool to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Instance.PrivateConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

setHttpServiceAttachment(String value)

public Instance.PrivateConfig.Builder setHttpServiceAttachment(String value)

Output only. Service Attachment for HTTP, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The httpServiceAttachment to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setHttpServiceAttachmentBytes(ByteString value)

public Instance.PrivateConfig.Builder setHttpServiceAttachmentBytes(ByteString value)

Output only. Service Attachment for HTTP, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string http_service_attachment = 3 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for httpServiceAttachment to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setIsPrivate(boolean value)

public Instance.PrivateConfig.Builder setIsPrivate(boolean value)

Required. Immutable. Indicate if it's private instance.

bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value boolean

The isPrivate to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Instance.PrivateConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides

setSshServiceAttachment(String value)

public Instance.PrivateConfig.Builder setSshServiceAttachment(String value)

Output only. Service Attachment for SSH, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The sshServiceAttachment to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setSshServiceAttachmentBytes(ByteString value)

public Instance.PrivateConfig.Builder setSshServiceAttachmentBytes(ByteString value)

Output only. Service Attachment for SSH, resource is in the format of projects/{project}/regions/{region}/serviceAttachments/{service_attachment}.

string ssh_service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for sshServiceAttachment to set.

Returns
Type Description
Instance.PrivateConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final Instance.PrivateConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Instance.PrivateConfig.Builder
Overrides