Class LinuxNodeConfig.CustomNodeInit.InitScript (2.96.0)

public static final class LinuxNodeConfig.CustomNodeInit.InitScript extends GeneratedMessage implements LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder

InitScript provide a simply bash script to be executed on the node.

Protobuf type google.container.v1beta1.LinuxNodeConfig.CustomNodeInit.InitScript

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > LinuxNodeConfig.CustomNodeInit.InitScript

Static Fields

ARGS_FIELD_NUMBER

public static final int ARGS_FIELD_NUMBER
Field Value
Type Description
int

GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER

public static final int GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER
Field Value
Type Description
int

GCS_GENERATION_FIELD_NUMBER

public static final int GCS_GENERATION_FIELD_NUMBER
Field Value
Type Description
int

GCS_URI_FIELD_NUMBER

public static final int GCS_URI_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static LinuxNodeConfig.CustomNodeInit.InitScript getDefaultInstance()
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilder()
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript.Builder

newBuilder(LinuxNodeConfig.CustomNodeInit.InitScript prototype)

public static LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilder(LinuxNodeConfig.CustomNodeInit.InitScript prototype)
Parameter
Name Description
prototype LinuxNodeConfig.CustomNodeInit.InitScript
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript.Builder

parseDelimitedFrom(InputStream input)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<LinuxNodeConfig.CustomNodeInit.InitScript> parser()
Returns
Type Description
Parser<InitScript>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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 int

The 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 int

The 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

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.

getParserForType()

public Parser<LinuxNodeConfig.CustomNodeInit.InitScript> getParserForType()
Returns
Type Description
Parser<InitScript>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilderForType()
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript.Builder
Overrides

toBuilder()

public LinuxNodeConfig.CustomNodeInit.InitScript.Builder toBuilder()
Returns
Type Description
LinuxNodeConfig.CustomNodeInit.InitScript.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException