Class LogDescriptor.Builder (2.32.0)

public static final class LogDescriptor.Builder extends GeneratedMessageV3.Builder<LogDescriptor.Builder> implements LogDescriptorOrBuilder

A description of a log type. Example in YAML format:

 - name: library.googleapis.com/activity_history
   description: The history of borrowing and returning library items.
   display_name: Activity
   labels:
   - key: /customer_id
     description: Identifier of a library customer

Protobuf type google.api.LogDescriptor

Static Methods

getDescriptor()

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

Methods

addAllLabels(Iterable<? extends LabelDescriptor> values)

public LogDescriptor.Builder addAllLabels(Iterable<? extends LabelDescriptor> values)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
valuesIterable<? extends com.google.api.LabelDescriptor>
Returns
TypeDescription
LogDescriptor.Builder

addLabels(LabelDescriptor value)

public LogDescriptor.Builder addLabels(LabelDescriptor value)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
valueLabelDescriptor
Returns
TypeDescription
LogDescriptor.Builder

addLabels(LabelDescriptor.Builder builderForValue)

public LogDescriptor.Builder addLabels(LabelDescriptor.Builder builderForValue)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
builderForValueLabelDescriptor.Builder
Returns
TypeDescription
LogDescriptor.Builder

addLabels(int index, LabelDescriptor value)

public LogDescriptor.Builder addLabels(int index, LabelDescriptor value)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameters
NameDescription
indexint
valueLabelDescriptor
Returns
TypeDescription
LogDescriptor.Builder

addLabels(int index, LabelDescriptor.Builder builderForValue)

public LogDescriptor.Builder addLabels(int index, LabelDescriptor.Builder builderForValue)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameters
NameDescription
indexint
builderForValueLabelDescriptor.Builder
Returns
TypeDescription
LogDescriptor.Builder

addLabelsBuilder()

public LabelDescriptor.Builder addLabelsBuilder()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
LabelDescriptor.Builder

addLabelsBuilder(int index)

public LabelDescriptor.Builder addLabelsBuilder(int index)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelDescriptor.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public LogDescriptor build()
Returns
TypeDescription
LogDescriptor

buildPartial()

public LogDescriptor buildPartial()
Returns
TypeDescription
LogDescriptor

clear()

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

clearDescription()

public LogDescriptor.Builder clearDescription()

A human-readable description of this log. This information appears in the documentation and can contain details.

string description = 3;

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

clearDisplayName()

public LogDescriptor.Builder clearDisplayName()

The human-readable name for this log. This information appears on the user interface and should be concise.

string display_name = 4;

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public LogDescriptor.Builder clearLabels()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
LogDescriptor.Builder

clearName()

public LogDescriptor.Builder clearName()

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].

string name = 1;

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public LogDescriptor getDefaultInstanceForType()
Returns
TypeDescription
LogDescriptor

getDescription()

public String getDescription()

A human-readable description of this log. This information appears in the documentation and can contain details.

string description = 3;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

A human-readable description of this log. This information appears in the documentation and can contain details.

string description = 3;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

The human-readable name for this log. This information appears on the user interface and should be concise.

string display_name = 4;

Returns
TypeDescription
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

The human-readable name for this log. This information appears on the user interface and should be concise.

string display_name = 4;

Returns
TypeDescription
ByteString

The bytes for displayName.

getLabels(int index)

public LabelDescriptor getLabels(int index)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelDescriptor

getLabelsBuilder(int index)

public LabelDescriptor.Builder getLabelsBuilder(int index)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelDescriptor.Builder

getLabelsBuilderList()

public List<LabelDescriptor.Builder> getLabelsBuilderList()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
List<Builder>

getLabelsCount()

public int getLabelsCount()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
int

getLabelsList()

public List<LabelDescriptor> getLabelsList()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
List<LabelDescriptor>

getLabelsOrBuilder(int index)

public LabelDescriptorOrBuilder getLabelsOrBuilder(int index)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LabelDescriptorOrBuilder

getLabelsOrBuilderList()

public List<? extends LabelDescriptorOrBuilder> getLabelsOrBuilderList()

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Returns
TypeDescription
List<? extends com.google.api.LabelDescriptorOrBuilder>

getName()

public String getName()

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].

string name = 1;

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(LogDescriptor other)

public LogDescriptor.Builder mergeFrom(LogDescriptor other)
Parameter
NameDescription
otherLogDescriptor
Returns
TypeDescription
LogDescriptor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeLabels(int index)

public LogDescriptor.Builder removeLabels(int index)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameter
NameDescription
indexint
Returns
TypeDescription
LogDescriptor.Builder

setDescription(String value)

public LogDescriptor.Builder setDescription(String value)

A human-readable description of this log. This information appears in the documentation and can contain details.

string description = 3;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public LogDescriptor.Builder setDescriptionBytes(ByteString value)

A human-readable description of this log. This information appears in the documentation and can contain details.

string description = 3;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

setDisplayName(String value)

public LogDescriptor.Builder setDisplayName(String value)

The human-readable name for this log. This information appears on the user interface and should be concise.

string display_name = 4;

Parameter
NameDescription
valueString

The displayName to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public LogDescriptor.Builder setDisplayNameBytes(ByteString value)

The human-readable name for this log. This information appears on the user interface and should be concise.

string display_name = 4;

Parameter
NameDescription
valueByteString

The bytes for displayName to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setLabels(int index, LabelDescriptor value)

public LogDescriptor.Builder setLabels(int index, LabelDescriptor value)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameters
NameDescription
indexint
valueLabelDescriptor
Returns
TypeDescription
LogDescriptor.Builder

setLabels(int index, LabelDescriptor.Builder builderForValue)

public LogDescriptor.Builder setLabels(int index, LabelDescriptor.Builder builderForValue)

The set of labels that are available to describe a specific log entry. Runtime requests that contain labels not specified here are considered invalid.

repeated .google.api.LabelDescriptor labels = 2;

Parameters
NameDescription
indexint
builderForValueLabelDescriptor.Builder
Returns
TypeDescription
LogDescriptor.Builder

setName(String value)

public LogDescriptor.Builder setName(String value)

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

setNameBytes(ByteString value)

public LogDescriptor.Builder setNameBytes(ByteString value)

The name of the log. It must be less than 512 characters long and can include the following characters: upper- and lower-case alphanumeric characters [A-Za-z0-9], and punctuation characters including slash, underscore, hyphen, period [/_-.].

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
LogDescriptor.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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