Class Bucket.Logging.Builder (2.17.1)

public static final class Bucket.Logging.Builder extends GeneratedMessageV3.Builder<Bucket.Logging.Builder> implements Bucket.LoggingOrBuilder

Logging-related properties of a bucket.

Protobuf type google.storage.v2.Bucket.Logging

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Bucket.Logging build()
Returns
TypeDescription
Bucket.Logging

buildPartial()

public Bucket.Logging buildPartial()
Returns
TypeDescription
Bucket.Logging

clear()

public Bucket.Logging.Builder clear()
Returns
TypeDescription
Bucket.Logging.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLogBucket()

public Bucket.Logging.Builder clearLogBucket()

The destination bucket where the current bucket's logs should be placed, using path format (like projects/123456/buckets/foo).

string log_bucket = 1;

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

clearLogObjectPrefix()

public Bucket.Logging.Builder clearLogObjectPrefix()

A prefix for log object names.

string log_object_prefix = 2;

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Bucket.Logging.Builder clone()
Returns
TypeDescription
Bucket.Logging.Builder
Overrides

getDefaultInstanceForType()

public Bucket.Logging getDefaultInstanceForType()
Returns
TypeDescription
Bucket.Logging

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLogBucket()

public String getLogBucket()

The destination bucket where the current bucket's logs should be placed, using path format (like projects/123456/buckets/foo).

string log_bucket = 1;

Returns
TypeDescription
String

The logBucket.

getLogBucketBytes()

public ByteString getLogBucketBytes()

The destination bucket where the current bucket's logs should be placed, using path format (like projects/123456/buckets/foo).

string log_bucket = 1;

Returns
TypeDescription
ByteString

The bytes for logBucket.

getLogObjectPrefix()

public String getLogObjectPrefix()

A prefix for log object names.

string log_object_prefix = 2;

Returns
TypeDescription
String

The logObjectPrefix.

getLogObjectPrefixBytes()

public ByteString getLogObjectPrefixBytes()

A prefix for log object names.

string log_object_prefix = 2;

Returns
TypeDescription
ByteString

The bytes for logObjectPrefix.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeFrom(Bucket.Logging other)

public Bucket.Logging.Builder mergeFrom(Bucket.Logging other)
Parameter
NameDescription
otherBucket.Logging
Returns
TypeDescription
Bucket.Logging.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLogBucket(String value)

public Bucket.Logging.Builder setLogBucket(String value)

The destination bucket where the current bucket's logs should be placed, using path format (like projects/123456/buckets/foo).

string log_bucket = 1;

Parameter
NameDescription
valueString

The logBucket to set.

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

setLogBucketBytes(ByteString value)

public Bucket.Logging.Builder setLogBucketBytes(ByteString value)

The destination bucket where the current bucket's logs should be placed, using path format (like projects/123456/buckets/foo).

string log_bucket = 1;

Parameter
NameDescription
valueByteString

The bytes for logBucket to set.

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

setLogObjectPrefix(String value)

public Bucket.Logging.Builder setLogObjectPrefix(String value)

A prefix for log object names.

string log_object_prefix = 2;

Parameter
NameDescription
valueString

The logObjectPrefix to set.

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

setLogObjectPrefixBytes(ByteString value)

public Bucket.Logging.Builder setLogObjectPrefixBytes(ByteString value)

A prefix for log object names.

string log_object_prefix = 2;

Parameter
NameDescription
valueByteString

The bytes for logObjectPrefix to set.

Returns
TypeDescription
Bucket.Logging.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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