Class 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.GeneratedMessageV3.Builder<Runnable.Script.Builder>
    implements Runnable.ScriptOrBuilder
     Script runnable.
     
    Protobuf type google.cloud.batch.v1.Runnable.Script
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public Runnable.Script.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • setField

        public Runnable.Script.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • clearField

        public Runnable.Script.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • clearOneof

        public Runnable.Script.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • setRepeatedField

        public Runnable.Script.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        int index,
                                                        Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • addRepeatedField

        public Runnable.Script.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                        Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • hasPath

        public boolean hasPath()
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Specified by:
        hasPath in interface Runnable.ScriptOrBuilder
        Returns:
        Whether the path field is set.
      • getPath

        public String getPath()
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Specified by:
        getPath in interface Runnable.ScriptOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Specified by:
        getPathBytes in interface Runnable.ScriptOrBuilder
        Returns:
        The bytes for path.
      • setPath

        public Runnable.Script.Builder setPath​(String value)
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • clearPath

        public Runnable.Script.Builder clearPath()
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Returns:
        This builder for chaining.
      • setPathBytes

        public Runnable.Script.Builder setPathBytes​(com.google.protobuf.ByteString value)
         Script file path on the host VM.
        
         To specify an interpreter, please add a `#!<interpreter>`(also known as
         [shebang line](https://en.wikipedia.org/wiki/Shebang_(Unix))) as the
         first line of the file.(For example, to execute the script using bash,
         `#!/bin/bash` should be the first line of the file. To execute the
         script using`Python3`, `#!/usr/bin/env python3` should be the first
         line of the file.) Otherwise, the file will by default be excuted by
         `/bin/sh`.
         
        string path = 1;
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • hasText

        public boolean hasText()
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Specified by:
        hasText in interface Runnable.ScriptOrBuilder
        Returns:
        Whether the text field is set.
      • getText

        public String getText()
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Specified by:
        getText in interface Runnable.ScriptOrBuilder
        Returns:
        The text.
      • getTextBytes

        public com.google.protobuf.ByteString getTextBytes()
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Specified by:
        getTextBytes in interface Runnable.ScriptOrBuilder
        Returns:
        The bytes for text.
      • setText

        public Runnable.Script.Builder setText​(String value)
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Parameters:
        value - The text to set.
        Returns:
        This builder for chaining.
      • clearText

        public Runnable.Script.Builder clearText()
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Returns:
        This builder for chaining.
      • setTextBytes

        public Runnable.Script.Builder setTextBytes​(com.google.protobuf.ByteString value)
         Shell script text.
        
         To specify an interpreter, please add a `#!<interpreter>\n` at the
         beginning of the text.(For example, to execute the script using bash,
         `#!/bin/bash\n` should be added. To execute the script using`Python3`,
         `#!/usr/bin/env python3\n` should be added.) Otherwise, the script will
         by default be excuted by `/bin/sh`.
         
        string text = 2;
        Parameters:
        value - The bytes for text to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Runnable.Script.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
      • mergeUnknownFields

        public final Runnable.Script.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>