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.v1.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.v1.OciConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.The absolute path of the directory that contains the local resources.Type of secret configured for access to the Git repo.The OCI image repository URL for the package to sync from.Period in seconds between consecutive syncs.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.com.google.protobuf.ByteStringThe Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.The absolute path of the directory that contains the local resources.com.google.protobuf.ByteStringThe absolute path of the directory that contains the local resources.Type of secret configured for access to the Git repo.com.google.protobuf.ByteStringType of secret configured for access to the Git repo.The OCI image repository URL for the package to sync from.com.google.protobuf.ByteStringThe OCI image repository URL for the package to sync from.longPeriod in seconds between consecutive syncs.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) The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.setGcpServiceAccountEmailBytes(com.google.protobuf.ByteString value) The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.setPolicyDir(String value) The absolute path of the directory that contains the local resources.setPolicyDirBytes(com.google.protobuf.ByteString value) The absolute path of the directory that contains the local resources.setSecretType(String value) Type of secret configured for access to the Git repo.setSecretTypeBytes(com.google.protobuf.ByteString value) Type of secret configured for access to the Git repo.setSyncRepo(String value) The OCI image repository URL for the package to sync from.setSyncRepoBytes(com.google.protobuf.ByteString value) The OCI image repository URL for the package to sync from.setSyncWaitSecs(long value) Period in seconds between consecutive syncs.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
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;- Specified by:
getSyncRepoin interfaceOciConfigOrBuilder- Returns:
- The syncRepo.
-
getSyncRepoBytes
public com.google.protobuf.ByteString getSyncRepoBytes()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;- Specified by:
getSyncRepoBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for syncRepo.
-
setSyncRepo
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;- Parameters:
value- The syncRepo to set.- Returns:
- This builder for chaining.
-
clearSyncRepo
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;- Returns:
- This builder for chaining.
-
setSyncRepoBytes
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;- Parameters:
value- The bytes for syncRepo to set.- Returns:
- This builder for chaining.
-
getPolicyDir
The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2;- Specified by:
getPolicyDirin interfaceOciConfigOrBuilder- Returns:
- The policyDir.
-
getPolicyDirBytes
public com.google.protobuf.ByteString getPolicyDirBytes()The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2;- Specified by:
getPolicyDirBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for policyDir.
-
setPolicyDir
The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2;- Parameters:
value- The policyDir to set.- Returns:
- This builder for chaining.
-
clearPolicyDir
The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2;- Returns:
- This builder for chaining.
-
setPolicyDirBytes
The absolute path of the directory that contains the local resources. Default: the root directory of the image.
string policy_dir = 2;- Parameters:
value- The bytes for policyDir to set.- Returns:
- This builder for chaining.
-
getSyncWaitSecs
public long getSyncWaitSecs()Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3;- Specified by:
getSyncWaitSecsin interfaceOciConfigOrBuilder- Returns:
- The syncWaitSecs.
-
setSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3;- Parameters:
value- The syncWaitSecs to set.- Returns:
- This builder for chaining.
-
clearSyncWaitSecs
Period in seconds between consecutive syncs. Default: 15.
int64 sync_wait_secs = 3;- Returns:
- This builder for chaining.
-
getSecretType
Type of secret configured for access to the Git repo.
string secret_type = 4;- Specified by:
getSecretTypein interfaceOciConfigOrBuilder- Returns:
- The secretType.
-
getSecretTypeBytes
public com.google.protobuf.ByteString getSecretTypeBytes()Type of secret configured for access to the Git repo.
string secret_type = 4;- Specified by:
getSecretTypeBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for secretType.
-
setSecretType
Type of secret configured for access to the Git repo.
string secret_type = 4;- Parameters:
value- The secretType to set.- Returns:
- This builder for chaining.
-
clearSecretType
Type of secret configured for access to the Git repo.
string secret_type = 4;- Returns:
- This builder for chaining.
-
setSecretTypeBytes
Type of secret configured for access to the Git repo.
string secret_type = 4;- Parameters:
value- The bytes for secretType to set.- Returns:
- This builder for chaining.
-
getGcpServiceAccountEmail
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 5;- Specified by:
getGcpServiceAccountEmailin interfaceOciConfigOrBuilder- Returns:
- The gcpServiceAccountEmail.
-
getGcpServiceAccountEmailBytes
public com.google.protobuf.ByteString getGcpServiceAccountEmailBytes()The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 5;- Specified by:
getGcpServiceAccountEmailBytesin interfaceOciConfigOrBuilder- Returns:
- The bytes for gcpServiceAccountEmail.
-
setGcpServiceAccountEmail
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 5;- Parameters:
value- The gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-
clearGcpServiceAccountEmail
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 5;- Returns:
- This builder for chaining.
-
setGcpServiceAccountEmailBytes
The Google Cloud Service Account Email used for auth when secret_type is gcpServiceAccount.
string gcp_service_account_email = 5;- Parameters:
value- The bytes for gcpServiceAccountEmail to set.- Returns:
- This builder for chaining.
-