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 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.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public LinuxNodeConfig.CustomNodeInit.InitScript.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<LinuxNodeConfig.CustomNodeInit.InitScript.Builder>
      Throws:
      IOException
    • 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.
    • 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:
      getGcsGeneration in interface LinuxNodeConfig.CustomNodeInit.InitScriptOrBuilder
      Returns:
      The gcsGeneration.
    • setGcsGeneration

      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;
      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:
      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.
    • setArgs

      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:
      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

      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.
    • setGcpSecretManagerSecretUri

      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;
      Parameters:
      value - The gcpSecretManagerSecretUri to set.
      Returns:
      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:
      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.