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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilder()
newBuilder(LinuxNodeConfig.CustomNodeInit.InitScript prototype)
public static LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilder(LinuxNodeConfig.CustomNodeInit.InitScript prototype)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(CodedInputStream input)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<LinuxNodeConfig.CustomNodeInit.InitScript> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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];
getDefaultInstanceForType()
public LinuxNodeConfig.CustomNodeInit.InitScript getDefaultInstanceForType()
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()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public LinuxNodeConfig.CustomNodeInit.InitScript.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides