Class CopyLogEntriesMetadata.Builder (3.15.10)

public static final class CopyLogEntriesMetadata.Builder extends GeneratedMessageV3.Builder<CopyLogEntriesMetadata.Builder> implements CopyLogEntriesMetadataOrBuilder

Metadata for CopyLogEntries long running operations.

Protobuf type google.logging.v2.CopyLogEntriesMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CopyLogEntriesMetadata build()
Returns
TypeDescription
CopyLogEntriesMetadata

buildPartial()

public CopyLogEntriesMetadata buildPartial()
Returns
TypeDescription
CopyLogEntriesMetadata

clear()

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

clearCancellationRequested()

public CopyLogEntriesMetadata.Builder clearCancellationRequested()

Identifies whether the user has requested cancellation of the operation.

bool cancellation_requested = 4;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

clearEndTime()

public CopyLogEntriesMetadata.Builder clearEndTime()

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearProgress()

public CopyLogEntriesMetadata.Builder clearProgress()

Estimated progress of the operation (0 - 100%).

int32 progress = 6;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

clearRequest()

public CopyLogEntriesMetadata.Builder clearRequest()

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

clearStartTime()

public CopyLogEntriesMetadata.Builder clearStartTime()

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

clearState()

public CopyLogEntriesMetadata.Builder clearState()

State of an operation.

.google.logging.v2.OperationState state = 3;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

clearWriterIdentity()

public CopyLogEntriesMetadata.Builder clearWriterIdentity()

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled.

For example: "serviceAccount:foo@bar.com"

string writer_identity = 7;

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

clone()

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

getCancellationRequested()

public boolean getCancellationRequested()

Identifies whether the user has requested cancellation of the operation.

bool cancellation_requested = 4;

Returns
TypeDescription
boolean

The cancellationRequested.

getDefaultInstanceForType()

public CopyLogEntriesMetadata getDefaultInstanceForType()
Returns
TypeDescription
CopyLogEntriesMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getProgress()

public int getProgress()

Estimated progress of the operation (0 - 100%).

int32 progress = 6;

Returns
TypeDescription
int

The progress.

getRequest()

public CopyLogEntriesRequest getRequest()

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Returns
TypeDescription
CopyLogEntriesRequest

The request.

getRequestBuilder()

public CopyLogEntriesRequest.Builder getRequestBuilder()

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Returns
TypeDescription
CopyLogEntriesRequest.Builder

getRequestOrBuilder()

public CopyLogEntriesRequestOrBuilder getRequestOrBuilder()

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Returns
TypeDescription
CopyLogEntriesRequestOrBuilder

getStartTime()

public Timestamp getStartTime()

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getState()

public OperationState getState()

State of an operation.

.google.logging.v2.OperationState state = 3;

Returns
TypeDescription
OperationState

The state.

getStateValue()

public int getStateValue()

State of an operation.

.google.logging.v2.OperationState state = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getWriterIdentity()

public String getWriterIdentity()

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled.

For example: "serviceAccount:foo@bar.com"

string writer_identity = 7;

Returns
TypeDescription
String

The writerIdentity.

getWriterIdentityBytes()

public ByteString getWriterIdentityBytes()

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled.

For example: "serviceAccount:foo@bar.com"

string writer_identity = 7;

Returns
TypeDescription
ByteString

The bytes for writerIdentity.

hasEndTime()

public boolean hasEndTime()

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasRequest()

public boolean hasRequest()

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Returns
TypeDescription
boolean

Whether the request field is set.

hasStartTime()

public boolean hasStartTime()

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public CopyLogEntriesMetadata.Builder mergeEndTime(Timestamp value)

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

mergeFrom(CopyLogEntriesMetadata other)

public CopyLogEntriesMetadata.Builder mergeFrom(CopyLogEntriesMetadata other)
Parameter
NameDescription
otherCopyLogEntriesMetadata
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRequest(CopyLogEntriesRequest value)

public CopyLogEntriesMetadata.Builder mergeRequest(CopyLogEntriesRequest value)

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Parameter
NameDescription
valueCopyLogEntriesRequest
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

mergeStartTime(Timestamp value)

public CopyLogEntriesMetadata.Builder mergeStartTime(Timestamp value)

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCancellationRequested(boolean value)

public CopyLogEntriesMetadata.Builder setCancellationRequested(boolean value)

Identifies whether the user has requested cancellation of the operation.

bool cancellation_requested = 4;

Parameter
NameDescription
valueboolean

The cancellationRequested to set.

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

setEndTime(Timestamp value)

public CopyLogEntriesMetadata.Builder setEndTime(Timestamp value)

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public CopyLogEntriesMetadata.Builder setEndTime(Timestamp.Builder builderForValue)

The end time of an operation.

.google.protobuf.Timestamp end_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setProgress(int value)

public CopyLogEntriesMetadata.Builder setProgress(int value)

Estimated progress of the operation (0 - 100%).

int32 progress = 6;

Parameter
NameDescription
valueint

The progress to set.

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

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

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

setRequest(CopyLogEntriesRequest value)

public CopyLogEntriesMetadata.Builder setRequest(CopyLogEntriesRequest value)

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Parameter
NameDescription
valueCopyLogEntriesRequest
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setRequest(CopyLogEntriesRequest.Builder builderForValue)

public CopyLogEntriesMetadata.Builder setRequest(CopyLogEntriesRequest.Builder builderForValue)

CopyLogEntries RPC request.

.google.logging.v2.CopyLogEntriesRequest request = 5;

Parameter
NameDescription
builderForValueCopyLogEntriesRequest.Builder
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setStartTime(Timestamp value)

public CopyLogEntriesMetadata.Builder setStartTime(Timestamp value)

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setStartTime(Timestamp.Builder builderForValue)

public CopyLogEntriesMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

The create time of an operation.

.google.protobuf.Timestamp start_time = 1;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
CopyLogEntriesMetadata.Builder

setState(OperationState value)

public CopyLogEntriesMetadata.Builder setState(OperationState value)

State of an operation.

.google.logging.v2.OperationState state = 3;

Parameter
NameDescription
valueOperationState

The state to set.

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

setStateValue(int value)

public CopyLogEntriesMetadata.Builder setStateValue(int value)

State of an operation.

.google.logging.v2.OperationState state = 3;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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

setWriterIdentity(String value)

public CopyLogEntriesMetadata.Builder setWriterIdentity(String value)

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled.

For example: "serviceAccount:foo@bar.com"

string writer_identity = 7;

Parameter
NameDescription
valueString

The writerIdentity to set.

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.

setWriterIdentityBytes(ByteString value)

public CopyLogEntriesMetadata.Builder setWriterIdentityBytes(ByteString value)

The IAM identity of a service account that must be granted access to the destination.

If the service account is not granted permission to the destination within an hour, the operation will be cancelled.

For example: "serviceAccount:foo@bar.com"

string writer_identity = 7;

Parameter
NameDescription
valueByteString

The bytes for writerIdentity to set.

Returns
TypeDescription
CopyLogEntriesMetadata.Builder

This builder for chaining.