Class LinuxNodeConfig.CustomNodeInit.InitScript

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript
All Implemented Interfaces:
LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
LinuxNodeConfig.CustomNodeInit

public static final class LinuxNodeConfig.CustomNodeInit.InitScript extends com.google.protobuf.GeneratedMessage implements LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
 InitScript provide a simply bash script to be executed on the node.
 
Protobuf type google.container.v1.LinuxNodeConfig.CustomNodeInit.InitScript
See Also:
  • Field Details

    • GCS_URI_FIELD_NUMBER

      public static final int GCS_URI_FIELD_NUMBER
      See Also:
    • GCS_GENERATION_FIELD_NUMBER

      public static final int GCS_GENERATION_FIELD_NUMBER
      See Also:
    • ARGS_FIELD_NUMBER

      public static final int ARGS_FIELD_NUMBER
      See Also:
    • GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER

      public static final int GCP_SECRET_MANAGER_SECRET_URI_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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;
      Specified by:
      getGcsUri in interface LinuxNodeConfig.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:
      getGcsUriBytes in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Returns:
      The bytes for gcsUri.
    • 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:
      getGcsGeneration in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Returns:
      The gcsGeneration.
    • 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:
      getArgsList in interface LinuxNodeConfig.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:
      getArgsCount in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Returns:
      The count of args.
    • getArgs

      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];
      Specified by:
      getArgs in interface LinuxNodeConfig.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:
      getArgsBytes in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the args at the given index.
    • 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;
      Specified by:
      getGcpSecretManagerSecretUri in interface LinuxNodeConfig.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:
      getGcpSecretManagerSecretUriBytes in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Returns:
      The bytes for gcpSecretManagerSecretUri.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static LinuxNodeConfig.CustomNodeInit.InitScript parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected LinuxNodeConfig.CustomNodeInit.InitScript.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static LinuxNodeConfig.CustomNodeInit.InitScript getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<LinuxNodeConfig.CustomNodeInit.InitScript> parser()
    • getParserForType

      public com.google.protobuf.Parser<LinuxNodeConfig.CustomNodeInit.InitScript> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public LinuxNodeConfig.CustomNodeInit.InitScript getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder