Class LogsPolicy.Builder (0.2.0)

public static final class LogsPolicy.Builder extends GeneratedMessageV3.Builder<LogsPolicy.Builder> implements LogsPolicyOrBuilder

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

Protobuf type google.cloud.batch.v1alpha.LogsPolicy

Implements

LogsPolicyOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public LogsPolicy.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LogsPolicy.Builder
Overrides

build()

public LogsPolicy build()
Returns
TypeDescription
LogsPolicy

buildPartial()

public LogsPolicy buildPartial()
Returns
TypeDescription
LogsPolicy

clear()

public LogsPolicy.Builder clear()
Returns
TypeDescription
LogsPolicy.Builder
Overrides

clearDestination()

public LogsPolicy.Builder clearDestination()

Where logs should be saved.

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

Returns
TypeDescription
LogsPolicy.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public LogsPolicy.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
LogsPolicy.Builder
Overrides

clearLogsPath()

public LogsPolicy.Builder clearLogsPath()

The path to which logs are saved when the destination = PATH. This can be a local file path 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
LogsPolicy.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public LogsPolicy.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
LogsPolicy.Builder
Overrides

clone()

public LogsPolicy.Builder clone()
Returns
TypeDescription
LogsPolicy.Builder
Overrides

getDefaultInstanceForType()

public LogsPolicy getDefaultInstanceForType()
Returns
TypeDescription
LogsPolicy

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestination()

public LogsPolicy.Destination getDestination()

Where logs should be saved.

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

Returns
TypeDescription
LogsPolicy.Destination

The destination.

getDestinationValue()

public int getDestinationValue()

Where logs should be saved.

.google.cloud.batch.v1alpha.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 file path 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 file path 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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LogsPolicy other)

public LogsPolicy.Builder mergeFrom(LogsPolicy other)
Parameter
NameDescription
otherLogsPolicy
Returns
TypeDescription
LogsPolicy.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public LogsPolicy.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
LogsPolicy.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public LogsPolicy.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
LogsPolicy.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final LogsPolicy.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LogsPolicy.Builder
Overrides

setDestination(LogsPolicy.Destination value)

public LogsPolicy.Builder setDestination(LogsPolicy.Destination value)

Where logs should be saved.

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

Parameter
NameDescription
valueLogsPolicy.Destination

The destination to set.

Returns
TypeDescription
LogsPolicy.Builder

This builder for chaining.

setDestinationValue(int value)

public LogsPolicy.Builder setDestinationValue(int value)

Where logs should be saved.

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

Parameter
NameDescription
valueint

The enum numeric value on the wire for destination to set.

Returns
TypeDescription
LogsPolicy.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public LogsPolicy.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
LogsPolicy.Builder
Overrides

setLogsPath(String value)

public LogsPolicy.Builder setLogsPath(String value)

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

string logs_path = 2;

Parameter
NameDescription
valueString

The logsPath to set.

Returns
TypeDescription
LogsPolicy.Builder

This builder for chaining.

setLogsPathBytes(ByteString value)

public LogsPolicy.Builder setLogsPathBytes(ByteString value)

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

string logs_path = 2;

Parameter
NameDescription
valueByteString

The bytes for logsPath to set.

Returns
TypeDescription
LogsPolicy.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public LogsPolicy.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
LogsPolicy.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final LogsPolicy.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
LogsPolicy.Builder
Overrides