Class Instance.PrivateConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
com.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.Builder
- All Implemented Interfaces:
Instance.PrivateConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Instance.PrivateConfig
public static final class Instance.PrivateConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
implements Instance.PrivateConfigOrBuilder
PrivateConfig includes settings for private instance.Protobuf type
google.cloud.securesourcemanager.v1.Instance.PrivateConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllPscAllowedProjects(Iterable<String> values) Optional.addPscAllowedProjects(String value) Optional.addPscAllowedProjectsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.Optional.Output only.Required.Optional.Output only.Optional.com.google.protobuf.ByteStringOptional.Optional.Optional.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.booleanRequired.getPscAllowedProjects(int index) Optional.com.google.protobuf.ByteStringgetPscAllowedProjectsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Output only.com.google.protobuf.ByteStringOutput only.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanOptional.mergeFrom(Instance.PrivateConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.setCaPoolBytes(com.google.protobuf.ByteString value) Optional.Optional.setCustomHostConfig(Instance.PrivateConfig.CustomHostConfig.Builder builderForValue) Optional.setHttpServiceAttachment(String value) Output only.setHttpServiceAttachmentBytes(com.google.protobuf.ByteString value) Output only.setIsPrivate(boolean value) Required.setPscAllowedProjects(int index, String value) Optional.setSshServiceAttachment(String value) Output only.setSshServiceAttachmentBytes(com.google.protobuf.ByteString value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.PrivateConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Instance.PrivateConfig.Builder>
-
mergeFrom
public Instance.PrivateConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Instance.PrivateConfig.Builder>- Throws:
IOException
-
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];- Specified by:
getIsPrivatein interfaceInstance.PrivateConfigOrBuilder- Returns:
- The isPrivate.
-
setIsPrivate
Required. Immutable. Indicate if it's private instance.
bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];- Parameters:
value- The isPrivate to set.- Returns:
- This builder for chaining.
-
clearIsPrivate
Required. Immutable. Indicate if it's private instance.
bool is_private = 1 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getCaPool
Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCaPoolin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The caPool.
-
getCaPoolBytes
public com.google.protobuf.ByteString getCaPoolBytes()Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }- Specified by:
getCaPoolBytesin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The bytes for caPool.
-
setCaPool
Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The caPool to set.- Returns:
- This builder for chaining.
-
clearCaPool
Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }- Returns:
- This builder for chaining.
-
setCaPoolBytes
Optional. 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) = OPTIONAL, (.google.api.resource_reference) = { ... }- Parameters:
value- The bytes for caPool to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getHttpServiceAttachmentin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The httpServiceAttachment.
-
getHttpServiceAttachmentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getHttpServiceAttachmentBytesin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The bytes for httpServiceAttachment.
-
setHttpServiceAttachment
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) = { ... }- Parameters:
value- The httpServiceAttachment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setHttpServiceAttachmentBytes
public Instance.PrivateConfig.Builder setHttpServiceAttachmentBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for httpServiceAttachment to set.- Returns:
- This builder for chaining.
-
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) = { ... }- Specified by:
getSshServiceAttachmentin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The sshServiceAttachment.
-
getSshServiceAttachmentBytes
public com.google.protobuf.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) = { ... }- Specified by:
getSshServiceAttachmentBytesin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The bytes for sshServiceAttachment.
-
setSshServiceAttachment
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) = { ... }- Parameters:
value- The sshServiceAttachment to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setSshServiceAttachmentBytes
public Instance.PrivateConfig.Builder setSshServiceAttachmentBytes(com.google.protobuf.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) = { ... }- Parameters:
value- The bytes for sshServiceAttachment to set.- Returns:
- This builder for chaining.
-
getPscAllowedProjectsList
public com.google.protobuf.ProtocolStringList getPscAllowedProjectsList()Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPscAllowedProjectsListin interfaceInstance.PrivateConfigOrBuilder- Returns:
- A list containing the pscAllowedProjects.
-
getPscAllowedProjectsCount
public int getPscAllowedProjectsCount()Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPscAllowedProjectsCountin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The count of pscAllowedProjects.
-
getPscAllowedProjects
Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPscAllowedProjectsin interfaceInstance.PrivateConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The pscAllowedProjects at the given index.
-
getPscAllowedProjectsBytes
public com.google.protobuf.ByteString getPscAllowedProjectsBytes(int index) Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPscAllowedProjectsBytesin interfaceInstance.PrivateConfigOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the pscAllowedProjects at the given index.
-
setPscAllowedProjects
Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The pscAllowedProjects to set.- Returns:
- This builder for chaining.
-
addPscAllowedProjects
Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The pscAllowedProjects to add.- Returns:
- This builder for chaining.
-
addAllPscAllowedProjects
Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The pscAllowedProjects to add.- Returns:
- This builder for chaining.
-
clearPscAllowedProjects
Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addPscAllowedProjectsBytes
public Instance.PrivateConfig.Builder addPscAllowedProjectsBytes(com.google.protobuf.ByteString value) Optional. Additional allowed projects for setting up PSC connections. Instance host project is automatically allowed and does not need to be included in this list.
repeated string psc_allowed_projects = 6 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the pscAllowedProjects to add.- Returns:
- This builder for chaining.
-
hasCustomHostConfig
public boolean hasCustomHostConfig()Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasCustomHostConfigin interfaceInstance.PrivateConfigOrBuilder- Returns:
- Whether the customHostConfig field is set.
-
getCustomHostConfig
Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomHostConfigin interfaceInstance.PrivateConfigOrBuilder- Returns:
- The customHostConfig.
-
setCustomHostConfig
public Instance.PrivateConfig.Builder setCustomHostConfig(Instance.PrivateConfig.CustomHostConfig value) Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
setCustomHostConfig
public Instance.PrivateConfig.Builder setCustomHostConfig(Instance.PrivateConfig.CustomHostConfig.Builder builderForValue) Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
mergeCustomHostConfig
public Instance.PrivateConfig.Builder mergeCustomHostConfig(Instance.PrivateConfig.CustomHostConfig value) Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
clearCustomHostConfig
Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomHostConfigBuilder
Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL]; -
getCustomHostConfigOrBuilder
Optional. Custom host config for the instance.
.google.cloud.securesourcemanager.v1.Instance.PrivateConfig.CustomHostConfig custom_host_config = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCustomHostConfigOrBuilderin interfaceInstance.PrivateConfigOrBuilder
-