Class OciConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
com.google.cloud.gkehub.configmanagement.v1beta.OciConfig.Builder
- All Implemented Interfaces:
OciConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- OciConfig
public static final class OciConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
implements OciConfigOrBuilder
OCI repo configuration for a single clusterProtobuf type
google.cloud.gkehub.configmanagement.v1beta.OciConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Optional.Required.Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.Required.com.google.protobuf.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.longOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGcpServiceAccountEmail(String value) Optional.setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) Optional.setPolicyDir(String value) Optional.setPolicyDirBytes(com.google.protobuf.ByteString value) Optional.setSecretType(String value) Required.setSecretTypeBytes(com.google.protobuf.ByteString value) Required.setSyncRepo(String value) Required.setSyncRepoBytes(com.google.protobuf.ByteString value) Required.setSyncWaitSecs(long value) Optional.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<OciConfig.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<OciConfig.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<OciConfig.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<OciConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<OciConfig.Builder>
-
mergeFrom
public OciConfig.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<OciConfig.Builder>- Throws:
IOException
-
getSyncRepo
Required. The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSyncRepoin interfaceOciConfigOrBuilder- Returns:
- The syncRepo.
-
getSyncRepoBytes
public com.google.protobuf.ByteString getSyncRepoBytes()Required. The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSyncRepoBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for syncRepo.
-
setSyncRepo
Required. The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The syncRepo to set.- Returns:
- This builder for chaining.
-
clearSyncRepo
Required. The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSyncRepoBytes
Required. The OCI image repository URL for the package to sync from. e.g. `LOCATION-docker.pkg.dev/PROJECT_ID/REPOSITORY_NAME/PACKAGE_NAME`.
string sync_repo = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for syncRepo to set.- Returns:
- This builder for chaining.
-
getPolicyDir
Optional. The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyDirin interfaceOciConfigOrBuilder- Returns:
- The policyDir.
-
getPolicyDirBytes
public com.google.protobuf.ByteString getPolicyDirBytes()Optional. The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPolicyDirBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for policyDir.
-
setPolicyDir
Optional. The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The policyDir to set.- Returns:
- This builder for chaining.
-
clearPolicyDir
Optional. The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setPolicyDirBytes
Optional. The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for policyDir to set.- Returns:
- This builder for chaining.
-
getSyncWaitSecs
public long getSyncWaitSecs()Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getSyncWaitSecsin interfaceOciConfigOrBuilder- Returns:
- The syncWaitSecs.
-
setSyncWaitSecs
Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The syncWaitSecs to set.- Returns:
- This builder for chaining.
-
clearSyncWaitSecs
Optional. Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
getSecretType
Required. Type of secret configured for access to the OCI repo. Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The validation of this is case-sensitive.
string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSecretTypein interfaceOciConfigOrBuilder- Returns:
- The secretType.
-
getSecretTypeBytes
public com.google.protobuf.ByteString getSecretTypeBytes()Required. Type of secret configured for access to the OCI repo. Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The validation of this is case-sensitive.
string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getSecretTypeBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for secretType.
-
setSecretType
Required. Type of secret configured for access to the OCI repo. Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The validation of this is case-sensitive.
string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The secretType to set.- Returns:
- This builder for chaining.
-
clearSecretType
Required. Type of secret configured for access to the OCI repo. Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The validation of this is case-sensitive.
string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setSecretTypeBytes
Required. Type of secret configured for access to the OCI repo. Must be one of `gcenode`, `gcpserviceaccount`, `k8sserviceaccount` or `none`. The validation of this is case-sensitive.
string secret_type = 4 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for secretType to set.- Returns:
- This builder for chaining.
-
getGcpServiceAccountEmail
Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcpServiceAccountEmailin interfaceOciConfigOrBuilder- Returns:
- The gcpServiceAccountEmail.
-
getGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getGcpServiceAccountEmailBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for gcpServiceAccountEmail.
-
setGcpServiceAccountEmail
Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearGcpServiceAccountEmail
Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setGcpServiceAccountEmailBytes
Optional. The Google Cloud Service Account Email used for auth when secret_type is `gcpserviceaccount`.
string gcp_service_account_email = 5 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-