Package com.google.api
Class LogDescriptor.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<LogDescriptor.Builder>
com.google.api.LogDescriptor.Builder
- All Implemented Interfaces:
LogDescriptorOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- LogDescriptor
public static final class LogDescriptor.Builder
extends com.google.protobuf.GeneratedMessage.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 customerProtobuf type
google.api.LogDescriptor-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels(Iterable<? extends LabelDescriptor> values) The set of labels that are available to describe a specific log entry.addLabels(int index, LabelDescriptor value) The set of labels that are available to describe a specific log entry.addLabels(int index, LabelDescriptor.Builder builderForValue) The set of labels that are available to describe a specific log entry.addLabels(LabelDescriptor value) The set of labels that are available to describe a specific log entry.addLabels(LabelDescriptor.Builder builderForValue) The set of labels that are available to describe a specific log entry.The set of labels that are available to describe a specific log entry.addLabelsBuilder(int index) The set of labels that are available to describe a specific log entry.build()clear()A human-readable description of this log.The human-readable name for this log.The set of labels that are available to describe a specific log entry.The name of the log.A human-readable description of this log.com.google.protobuf.ByteStringA human-readable description of this log.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe human-readable name for this log.com.google.protobuf.ByteStringThe human-readable name for this log.getLabels(int index) The set of labels that are available to describe a specific log entry.getLabelsBuilder(int index) The set of labels that are available to describe a specific log entry.The set of labels that are available to describe a specific log entry.intThe set of labels that are available to describe a specific log entry.The set of labels that are available to describe a specific log entry.getLabelsOrBuilder(int index) The set of labels that are available to describe a specific log entry.List<? extends LabelDescriptorOrBuilder>The set of labels that are available to describe a specific log entry.getName()The name of the log.com.google.protobuf.ByteStringThe name of the log.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(LogDescriptor other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeLabels(int index) The set of labels that are available to describe a specific log entry.setDescription(String value) A human-readable description of this log.setDescriptionBytes(com.google.protobuf.ByteString value) A human-readable description of this log.setDisplayName(String value) The human-readable name for this log.setDisplayNameBytes(com.google.protobuf.ByteString value) The human-readable name for this log.setLabels(int index, LabelDescriptor value) The set of labels that are available to describe a specific log entry.setLabels(int index, LabelDescriptor.Builder builderForValue) The set of labels that are available to describe a specific log entry.The name of the log.setNameBytes(com.google.protobuf.ByteString value) The name of the log.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<LogDescriptor.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<LogDescriptor.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<LogDescriptor.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogDescriptor.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<LogDescriptor.Builder>
-
mergeFrom
public LogDescriptor.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<LogDescriptor.Builder>- Throws:
IOException
-
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;- Specified by:
getNamein interfaceLogDescriptorOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.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;- Specified by:
getNameBytesin interfaceLogDescriptorOrBuilder- Returns:
- The bytes for name.
-
setName
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;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setNameBytes
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;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getLabelsListin interfaceLogDescriptorOrBuilder
-
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;- Specified by:
getLabelsCountin interfaceLogDescriptorOrBuilder
-
getLabels
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;- Specified by:
getLabelsin interfaceLogDescriptorOrBuilder
-
setLabels
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; -
setLabels
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; -
addLabels
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; -
addLabels
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; -
addLabels
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; -
addLabels
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; -
addAllLabels
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; -
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; -
removeLabels
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; -
getLabelsBuilder
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; -
getLabelsOrBuilder
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;- Specified by:
getLabelsOrBuilderin interfaceLogDescriptorOrBuilder
-
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;- Specified by:
getLabelsOrBuilderListin interfaceLogDescriptorOrBuilder
-
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; -
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; -
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; -
getDescription
A human-readable description of this log. This information appears in the documentation and can contain details.
string description = 3;- Specified by:
getDescriptionin interfaceLogDescriptorOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A human-readable description of this log. This information appears in the documentation and can contain details.
string description = 3;- Specified by:
getDescriptionBytesin interfaceLogDescriptorOrBuilder- Returns:
- The bytes for description.
-
setDescription
A human-readable description of this log. This information appears in the documentation and can contain details.
string description = 3;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A human-readable description of this log. This information appears in the documentation and can contain details.
string description = 3;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A human-readable description of this log. This information appears in the documentation and can contain details.
string description = 3;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDisplayName
The human-readable name for this log. This information appears on the user interface and should be concise.
string display_name = 4;- Specified by:
getDisplayNamein interfaceLogDescriptorOrBuilder- Returns:
- The displayName.
-
getDisplayNameBytes
public com.google.protobuf.ByteString getDisplayNameBytes()The human-readable name for this log. This information appears on the user interface and should be concise.
string display_name = 4;- Specified by:
getDisplayNameBytesin interfaceLogDescriptorOrBuilder- Returns:
- The bytes for displayName.
-
setDisplayName
The human-readable name for this log. This information appears on the user interface and should be concise.
string display_name = 4;- Parameters:
value- The displayName to set.- Returns:
- This builder for chaining.
-
clearDisplayName
The human-readable name for this log. This information appears on the user interface and should be concise.
string display_name = 4;- Returns:
- This builder for chaining.
-
setDisplayNameBytes
The human-readable name for this log. This information appears on the user interface and should be concise.
string display_name = 4;- Parameters:
value- The bytes for displayName to set.- Returns:
- This builder for chaining.
-