Package com.google.cloud.batch.v1
Class Runnable.Script.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
- com.google.cloud.batch.v1.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 typegoogle.cloud.batch.v1.Runnable.Script
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Runnable.Script.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Runnable.Script
build()
Runnable.Script
buildPartial()
Runnable.Script.Builder
clear()
Runnable.Script.Builder
clearCommand()
Runnable.Script.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
Runnable.Script.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
Runnable.Script.Builder
clearPath()
Script file path on the host VM.Runnable.Script.Builder
clearText()
Shell script text.Runnable.Script.Builder
clone()
Runnable.Script.CommandCase
getCommandCase()
Runnable.Script
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getPath()
Script file path on the host VM.com.google.protobuf.ByteString
getPathBytes()
Script file path on the host VM.String
getText()
Shell script text.com.google.protobuf.ByteString
getTextBytes()
Shell script text.boolean
hasPath()
Script file path on the host VM.boolean
hasText()
Shell script text.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
Runnable.Script.Builder
mergeFrom(Runnable.Script other)
Runnable.Script.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
Runnable.Script.Builder
mergeFrom(com.google.protobuf.Message other)
Runnable.Script.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
Runnable.Script.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
Runnable.Script.Builder
setPath(String value)
Script file path on the host VM.Runnable.Script.Builder
setPathBytes(com.google.protobuf.ByteString value)
Script file path on the host VM.Runnable.Script.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
Runnable.Script.Builder
setText(String value)
Shell script text.Runnable.Script.Builder
setTextBytes(com.google.protobuf.ByteString value)
Shell script text.Runnable.Script.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
clear
public Runnable.Script.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
getDefaultInstanceForType
public Runnable.Script getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public Runnable.Script build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Runnable.Script buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Runnable.Script.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
clearField
public Runnable.Script.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
clearOneof
public Runnable.Script.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
mergeFrom
public Runnable.Script.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.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 interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<Runnable.Script.Builder>
- Throws:
IOException
-
getCommandCase
public Runnable.Script.CommandCase getCommandCase()
- Specified by:
getCommandCase
in interfaceRunnable.ScriptOrBuilder
-
clearCommand
public Runnable.Script.Builder clearCommand()
-
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 interfaceRunnable.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 interfaceRunnable.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 interfaceRunnable.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 interfaceRunnable.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 interfaceRunnable.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 interfaceRunnable.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
mergeUnknownFields
public final Runnable.Script.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<Runnable.Script.Builder>
-
-