Class LogsPolicy (0.1.0)

public final class LogsPolicy extends GeneratedMessageV3 implements LogsPolicyOrBuilder

LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be preserved.

Protobuf type google.cloud.batch.v1.LogsPolicy

Implements

LogsPolicyOrBuilder

Static Fields

DESTINATION_FIELD_NUMBER

public static final int DESTINATION_FIELD_NUMBER
Field Value
TypeDescription
int

LOGS_PATH_FIELD_NUMBER

public static final int LOGS_PATH_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static LogsPolicy getDefaultInstance()
Returns
TypeDescription
LogsPolicy

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static LogsPolicy.Builder newBuilder()
Returns
TypeDescription
LogsPolicy.Builder

newBuilder(LogsPolicy prototype)

public static LogsPolicy.Builder newBuilder(LogsPolicy prototype)
Parameter
NameDescription
prototypeLogsPolicy
Returns
TypeDescription
LogsPolicy.Builder

parseDelimitedFrom(InputStream input)

public static LogsPolicy parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static LogsPolicy parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static LogsPolicy parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static LogsPolicy parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static LogsPolicy parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static LogsPolicy parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static LogsPolicy parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<LogsPolicy> parser()
Returns
TypeDescription
Parser<LogsPolicy>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public LogsPolicy getDefaultInstanceForType()
Returns
TypeDescription
LogsPolicy

getDestination()

public LogsPolicy.Destination getDestination()

Where logs should be saved.

.google.cloud.batch.v1.LogsPolicy.Destination destination = 1;

Returns
TypeDescription
LogsPolicy.Destination

The destination.

getDestinationValue()

public int getDestinationValue()

Where logs should be saved.

.google.cloud.batch.v1.LogsPolicy.Destination destination = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for destination.

getLogsPath()

public String getLogsPath()

The path to which logs are saved when the destination = PATH. This can be a local filepath on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.

string logs_path = 2;

Returns
TypeDescription
String

The logsPath.

getLogsPathBytes()

public ByteString getLogsPathBytes()

The path to which logs are saved when the destination = PATH. This can be a local filepath on the VM, or under the mount point of a Persistent Disk or Filestore, or a Cloud Storage path.

string logs_path = 2;

Returns
TypeDescription
ByteString

The bytes for logsPath.

getParserForType()

public Parser<LogsPolicy> getParserForType()
Returns
TypeDescription
Parser<LogsPolicy>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public LogsPolicy.Builder newBuilderForType()
Returns
TypeDescription
LogsPolicy.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected LogsPolicy.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
LogsPolicy.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public LogsPolicy.Builder toBuilder()
Returns
TypeDescription
LogsPolicy.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException