Class Runnable.Script.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Runnable.Script.Builder>
com.google.cloud.batch.v1alpha.Runnable.Script.Builder
All Implemented Interfaces:
Runnable.ScriptOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Runnable.Script

public static final class Runnable.Script.Builder extends com.google.protobuf.GeneratedMessage.Builder<Runnable.Script.Builder> implements Runnable.ScriptOrBuilder
 Script runnable.
 
Protobuf type google.cloud.batch.v1alpha.Runnable.Script
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    The path to a script file that is accessible from the host VM(s).
    The text for a script.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    The path to a script file that is accessible from the host VM(s).
    com.google.protobuf.ByteString
    The path to a script file that is accessible from the host VM(s).
    The text for a script.
    com.google.protobuf.ByteString
    The text for a script.
    boolean
    The path to a script file that is accessible from the host VM(s).
    boolean
    The text for a script.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    setPath(String value)
    The path to a script file that is accessible from the host VM(s).
    setPathBytes(com.google.protobuf.ByteString value)
    The path to a script file that is accessible from the host VM(s).
    setText(String value)
    The text for a script.
    setTextBytes(com.google.protobuf.ByteString value)
    The text for a script.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • 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<Runnable.Script.Builder>
    • clear

      public Runnable.Script.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<Runnable.Script.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<Runnable.Script.Builder>
    • getDefaultInstanceForType

      public Runnable.Script getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Runnable.Script build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Runnable.Script buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Runnable.Script.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<Runnable.Script.Builder>
    • mergeFrom

      public Runnable.Script.Builder mergeFrom(Runnable.Script other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Runnable.Script.Builder>
    • mergeFrom

      public Runnable.Script.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<Runnable.Script.Builder>
      Throws:
      IOException
    • getCommandCase

      public Runnable.Script.CommandCase getCommandCase()
      Specified by:
      getCommandCase in interface Runnable.ScriptOrBuilder
    • clearCommand

      public Runnable.Script.Builder clearCommand()
    • hasPath

      public boolean hasPath()
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Specified by:
      hasPath in interface Runnable.ScriptOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Specified by:
      getPath in interface Runnable.ScriptOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Specified by:
      getPathBytes in interface Runnable.ScriptOrBuilder
      Returns:
      The bytes for path.
    • setPath

      public Runnable.Script.Builder setPath(String value)
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

      public Runnable.Script.Builder clearPath()
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Runnable.Script.Builder setPathBytes(com.google.protobuf.ByteString value)
       The path to a script file that is accessible from the host VM(s).
      
       Unless the script file supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) as the
       first line of the file. For example, to execute the script using bash,
       include `#!/bin/bash` as the first line of the file. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3`
       as the first line of the file.
       
      string path = 1;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasText

      public boolean hasText()
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Specified by:
      hasText in interface Runnable.ScriptOrBuilder
      Returns:
      Whether the text field is set.
    • getText

      public String getText()
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Specified by:
      getText in interface Runnable.ScriptOrBuilder
      Returns:
      The text.
    • getTextBytes

      public com.google.protobuf.ByteString getTextBytes()
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Specified by:
      getTextBytes in interface Runnable.ScriptOrBuilder
      Returns:
      The bytes for text.
    • setText

      public Runnable.Script.Builder setText(String value)
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Parameters:
      value - The text to set.
      Returns:
      This builder for chaining.
    • clearText

      public Runnable.Script.Builder clearText()
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Returns:
      This builder for chaining.
    • setTextBytes

      public Runnable.Script.Builder setTextBytes(com.google.protobuf.ByteString value)
       The text for a script.
      
       Unless the script text supports the default `#!/bin/sh` shell
       interpreter, you must specify an interpreter by including a
       [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix) at the
       beginning of the text. For example, to execute the script using bash,
       include `#!/bin/bash\n` at the beginning of the text. Alternatively,
       to execute the script using Python3, include `#!/usr/bin/env python3\n`
       at the beginning of the text.
       
      string text = 2;
      Parameters:
      value - The bytes for text to set.
      Returns:
      This builder for chaining.