Class LoggingComponentConfig.Builder (2.36.0)

public static final class LoggingComponentConfig.Builder extends GeneratedMessageV3.Builder<LoggingComponentConfig.Builder> implements LoggingComponentConfigOrBuilder

LoggingComponentConfig is cluster logging component configuration.

Protobuf type google.container.v1.LoggingComponentConfig

Static Methods

getDescriptor()

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

Methods

addAllEnableComponents(Iterable<? extends LoggingComponentConfig.Component> values)

public LoggingComponentConfig.Builder addAllEnableComponents(Iterable<? extends LoggingComponentConfig.Component> values)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.container.v1.LoggingComponentConfig.Component>

The enableComponents to add.

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

addAllEnableComponentsValue(Iterable<Integer> values)

public LoggingComponentConfig.Builder addAllEnableComponentsValue(Iterable<Integer> values)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valuesIterable<Integer>

The enum numeric values on the wire for enableComponents to add.

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

addEnableComponents(LoggingComponentConfig.Component value)

public LoggingComponentConfig.Builder addEnableComponents(LoggingComponentConfig.Component value)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valueLoggingComponentConfig.Component

The enableComponents to add.

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

addEnableComponentsValue(int value)

public LoggingComponentConfig.Builder addEnableComponentsValue(int value)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for enableComponents to add.

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LoggingComponentConfig build()
Returns
TypeDescription
LoggingComponentConfig

buildPartial()

public LoggingComponentConfig buildPartial()
Returns
TypeDescription
LoggingComponentConfig

clear()

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

clearEnableComponents()

public LoggingComponentConfig.Builder clearEnableComponents()

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public LoggingComponentConfig getDefaultInstanceForType()
Returns
TypeDescription
LoggingComponentConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEnableComponents(int index)

public LoggingComponentConfig.Component getEnableComponents(int index)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
LoggingComponentConfig.Component

The enableComponents at the given index.

getEnableComponentsCount()

public int getEnableComponentsCount()

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Returns
TypeDescription
int

The count of enableComponents.

getEnableComponentsList()

public List<LoggingComponentConfig.Component> getEnableComponentsList()

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Returns
TypeDescription
List<Component>

A list containing the enableComponents.

getEnableComponentsValue(int index)

public int getEnableComponentsValue(int index)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
int

The enum numeric value on the wire of enableComponents at the given index.

getEnableComponentsValueList()

public List<Integer> getEnableComponentsValueList()

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Returns
TypeDescription
List<Integer>

A list containing the enum numeric values on the wire for enableComponents.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(LoggingComponentConfig other)

public LoggingComponentConfig.Builder mergeFrom(LoggingComponentConfig other)
Parameter
NameDescription
otherLoggingComponentConfig
Returns
TypeDescription
LoggingComponentConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEnableComponents(int index, LoggingComponentConfig.Component value)

public LoggingComponentConfig.Builder setEnableComponents(int index, LoggingComponentConfig.Component value)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueLoggingComponentConfig.Component

The enableComponents to set.

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

setEnableComponentsValue(int index, int value)

public LoggingComponentConfig.Builder setEnableComponentsValue(int index, int value)

Select components to collect logs. An empty set would disable all logging.

repeated .google.container.v1.LoggingComponentConfig.Component enable_components = 1;

Parameters
NameDescription
indexint

The index to set the value at.

valueint

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

Returns
TypeDescription
LoggingComponentConfig.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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