public static final class LinuxNodeConfig.CustomNodeInit.InitScript.Builder extends GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder> implements LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilderInitScript provide a simply bash script to be executed on the node.
Protobuf type google.container.v1beta1.LinuxNodeConfig.CustomNodeInit.InitScript
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > LinuxNodeConfig.CustomNodeInit.InitScript.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllArgs(Iterable<String> values)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder addAllArgs(Iterable<String> values)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The args to add. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
addArgs(String value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder addArgs(String value)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe args to add. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
addArgsBytes(ByteString value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder addArgsBytes(ByteString value)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the args to add. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
build()
public LinuxNodeConfig.CustomNodeInit.InitScript build()| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript |
|
buildPartial()
public LinuxNodeConfig.CustomNodeInit.InitScript buildPartial()| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript |
|
clear()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder clear()| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
|
clearArgs()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder clearArgs()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
clearGcpSecretManagerSecretUri()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder 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 | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
clearGcsGeneration()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder 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 | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
clearGcsUri()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder 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 | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
getArgs(int index)
public String getArgs(int index)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the element to return. |
| Returns | |
|---|---|
| Type | Description |
String |
The args at the given index. |
getArgsBytes(int index)
public 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];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe index of the value to return. |
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes of the args at the given index. |
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];
| Returns | |
|---|---|
| Type | Description |
int |
The count of args. |
getArgsList()
public ProtocolStringList getArgsList()Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the args. |
getDefaultInstanceForType()
public LinuxNodeConfig.CustomNodeInit.InitScript getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGcpSecretManagerSecretUri()
public String 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;
| Returns | |
|---|---|
| Type | Description |
String |
The gcpSecretManagerSecretUri. |
getGcpSecretManagerSecretUriBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcpSecretManagerSecretUri. |
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;
| Returns | |
|---|---|
| Type | Description |
long |
The gcsGeneration. |
getGcsUri()
public String 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;
| Returns | |
|---|---|
| Type | Description |
String |
The gcsUri. |
getGcsUriBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcsUri. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(LinuxNodeConfig.CustomNodeInit.InitScript other)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(LinuxNodeConfig.CustomNodeInit.InitScript other)| Parameter | |
|---|---|
| Name | Description |
other |
LinuxNodeConfig.CustomNodeInit.InitScript |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
|
setArgs(int index, String value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setArgs(int index, String value)Optional. The optional arguments line to be passed to the init script.
repeated string args = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe args to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
setGcpSecretManagerSecretUri(String value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcpSecretManagerSecretUri(String 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gcpSecretManagerSecretUri to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
setGcpSecretManagerSecretUriBytes(ByteString value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcpSecretManagerSecretUriBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gcpSecretManagerSecretUri to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
setGcsGeneration(long value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcsGeneration(long value) 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;
| Parameter | |
|---|---|
| Name | Description |
value |
longThe gcsGeneration to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
setGcsUri(String value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcsUri(String 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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |
setGcsUriBytes(ByteString value)
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder setGcsUriBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gcsUri to set. |
| Returns | |
|---|---|
| Type | Description |
LinuxNodeConfig.CustomNodeInit.InitScript.Builder |
This builder for chaining. |