Class CopyLogEntriesRequest.Builder (3.16.2)

public static final class CopyLogEntriesRequest.Builder extends GeneratedMessageV3.Builder<CopyLogEntriesRequest.Builder> implements CopyLogEntriesRequestOrBuilder

The parameters to CopyLogEntries.

Protobuf type google.logging.v2.CopyLogEntriesRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CopyLogEntriesRequest build()
Returns
TypeDescription
CopyLogEntriesRequest

buildPartial()

public CopyLogEntriesRequest buildPartial()
Returns
TypeDescription
CopyLogEntriesRequest

clear()

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

clearDestination()

public CopyLogEntriesRequest.Builder clearDestination()

Required. Destination to which to copy log entries.

string destination = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public CopyLogEntriesRequest.Builder clearFilter()

Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

clearName()

public CopyLogEntriesRequest.Builder clearName()

Required. Log bucket from which to copy log entries.

For example:

"projects/my-project/locations/global/buckets/my-source-bucket"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public CopyLogEntriesRequest getDefaultInstanceForType()
Returns
TypeDescription
CopyLogEntriesRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDestination()

public String getDestination()

Required. Destination to which to copy log entries.

string destination = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The destination.

getDestinationBytes()

public ByteString getDestinationBytes()

Required. Destination to which to copy log entries.

string destination = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for destination.

getFilter()

public String getFilter()

Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
String

The filter.

getFilterBytes()

public ByteString getFilterBytes()

Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
ByteString

The bytes for filter.

getName()

public String getName()

Required. Log bucket from which to copy log entries.

For example:

"projects/my-project/locations/global/buckets/my-source-bucket"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Required. Log bucket from which to copy log entries.

For example:

"projects/my-project/locations/global/buckets/my-source-bucket"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for name.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CopyLogEntriesRequest other)

public CopyLogEntriesRequest.Builder mergeFrom(CopyLogEntriesRequest other)
Parameter
NameDescription
otherCopyLogEntriesRequest
Returns
TypeDescription
CopyLogEntriesRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDestination(String value)

public CopyLogEntriesRequest.Builder setDestination(String value)

Required. Destination to which to copy log entries.

string destination = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The destination to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

setDestinationBytes(ByteString value)

public CopyLogEntriesRequest.Builder setDestinationBytes(ByteString value)

Required. Destination to which to copy log entries.

string destination = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for destination to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(String value)

public CopyLogEntriesRequest.Builder setFilter(String value)

Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueString

The filter to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

setFilterBytes(ByteString value)

public CopyLogEntriesRequest.Builder setFilterBytes(ByteString value)

Optional. A filter specifying which log entries to copy. The filter must be no more than 20k characters. An empty filter matches all log entries.

string filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueByteString

The bytes for filter to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

setName(String value)

public CopyLogEntriesRequest.Builder setName(String value)

Required. Log bucket from which to copy log entries.

For example:

"projects/my-project/locations/global/buckets/my-source-bucket"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

setNameBytes(ByteString value)

public CopyLogEntriesRequest.Builder setNameBytes(ByteString value)

Required. Log bucket from which to copy log entries.

For example:

"projects/my-project/locations/global/buckets/my-source-bucket"

string name = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
CopyLogEntriesRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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