Package com.google.container.v1
Class LinuxNodeConfig.CustomNodeInit.InitScript.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
com.google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript.Builder
- All Implemented Interfaces:
LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LinuxNodeConfig.CustomNodeInit.InitScript
public static final class LinuxNodeConfig.CustomNodeInit.InitScript.Builder
extends com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
implements LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
InitScript provide a simply bash script to be executed on the node.Protobuf type
google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript-
Method Summary
Modifier and TypeMethodDescriptionaddAllArgs(Iterable<String> values) Optional.Optional.addArgsBytes(com.google.protobuf.ByteString value) Optional.build()clear()Optional.The resource name of the secret manager secret hosting the init script.The generation of the init script stored in Gloud Storage.The Cloud Storage URI for storing the init script.getArgs(int index) Optional.com.google.protobuf.ByteStringgetArgsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe resource name of the secret manager secret hosting the init script.com.google.protobuf.ByteStringThe resource name of the secret manager secret hosting the init script.longThe generation of the init script stored in Gloud Storage.The Cloud Storage URI for storing the init script.com.google.protobuf.ByteStringThe Cloud Storage URI for storing the init script.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.The resource name of the secret manager secret hosting the init script.setGcpSecretManagerSecretUriBytes(com.google.protobuf.ByteString value) The resource name of the secret manager secret hosting the init script.setGcsGeneration(long value) The generation of the init script stored in Gloud Storage.The Cloud Storage URI for storing the init script.setGcsUriBytes(com.google.protobuf.ByteString value) The Cloud Storage URI for storing the init script.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<LinuxNodeConfig.CustomNodeInit.InitScript.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<LinuxNodeConfig.CustomNodeInit.InitScript.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<LinuxNodeConfig.CustomNodeInit.InitScript.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
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
-
mergeFrom
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(LinuxNodeConfig.CustomNodeInit.InitScript other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
-
mergeFrom
public LinuxNodeConfig.CustomNodeInit.InitScript.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<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>- Throws:
IOException
-
getGcsUri
The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Specified by:
getGcsUriin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcsUri.
-
getGcsUriBytes
public com.google.protobuf.ByteString getGcsUriBytes()The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Specified by:
getGcsUriBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The bytes for gcsUri.
-
setGcsUri
The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Parameters:
value- The gcsUri to set.- Returns:
- This builder for chaining.
-
clearGcsUri
The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Returns:
- This builder for chaining.
-
setGcsUriBytes
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcsUriBytes(com.google.protobuf.ByteString value) The Cloud Storage URI for storing the init script. Format: gs://BUCKET_NAME/OBJECT_NAME The service account on the node pool must have read access to the object. User can't configure both gcs_uri and gcp_secret_manager_secret_uri.
string gcs_uri = 1;- Parameters:
value- The bytes for gcsUri to set.- Returns:
- This builder for chaining.
-
getGcsGeneration
public long getGcsGeneration()The generation of the init script stored in Gloud Storage. This is the required field to identify the version of the init script. User can get the genetaion from `gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME --format="value(generation)"` or from the "Version history" tab of the object in the Cloud Console UI.
int64 gcs_generation = 2;- Specified by:
getGcsGenerationin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcsGeneration.
-
setGcsGeneration
The generation of the init script stored in Gloud Storage. This is the required field to identify the version of the init script. User can get the genetaion from `gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME --format="value(generation)"` or from the "Version history" tab of the object in the Cloud Console UI.
int64 gcs_generation = 2;- Parameters:
value- The gcsGeneration to set.- Returns:
- This builder for chaining.
-
clearGcsGeneration
The generation of the init script stored in Gloud Storage. This is the required field to identify the version of the init script. User can get the genetaion from `gcloud storage objects describe gs://BUCKET_NAME/OBJECT_NAME --format="value(generation)"` or from the "Version history" tab of the object in the Cloud Console UI.
int64 gcs_generation = 2;- Returns:
- This builder for chaining.
-
getArgsList
public com.google.protobuf.ProtocolStringList getArgsList()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsListin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- A list containing the args.
-
getArgsCount
public int getArgsCount()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsCountin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The count of args.
-
getArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The args at the given index.
-
getArgsBytes
public com.google.protobuf.ByteString getArgsBytes(int index) Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getArgsBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the args at the given index.
-
setArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
index- The index to set the value at.value- The args to set.- Returns:
- This builder for chaining.
-
addArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The args to add.- Returns:
- This builder for chaining.
-
addAllArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
values- The args to add.- Returns:
- This builder for chaining.
-
clearArgs
Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
addArgsBytes
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder addArgsBytes(com.google.protobuf.ByteString value) Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes of the args to add.- Returns:
- This builder for chaining.
-
getGcpSecretManagerSecretUri
The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Specified by:
getGcpSecretManagerSecretUriin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The gcpSecretManagerSecretUri.
-
getGcpSecretManagerSecretUriBytes
public com.google.protobuf.ByteString getGcpSecretManagerSecretUriBytes()The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Specified by:
getGcpSecretManagerSecretUriBytesin interfaceLinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder- Returns:
- The bytes for gcpSecretManagerSecretUri.
-
setGcpSecretManagerSecretUri
The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Parameters:
value- The gcpSecretManagerSecretUri to set.- Returns:
- This builder for chaining.
-
clearGcpSecretManagerSecretUri
The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Returns:
- This builder for chaining.
-
setGcpSecretManagerSecretUriBytes
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcpSecretManagerSecretUriBytes(com.google.protobuf.ByteString value) The resource name of the secret manager secret hosting the init script. Both global and regional secrets are supported with format below: Global secret: projects/{project}/secrets/{secret}/versions/{version} Regional secret: projects/{project}/locations/{location}/secrets/{secret}/versions/{version} Example: projects/1234567890/secrets/script_1/versions/1. Accept version number only, not support version alias. User can't configure both gcp_secret_manager_secret_uri and gcs_uri.string gcp_secret_manager_secret_uri = 4;- Parameters:
value- The bytes for gcpSecretManagerSecretUri to set.- Returns:
- This builder for chaining.
-