Package com.google.api
Class DocumentationRule.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- com.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
- com.google.api.DocumentationRule.Builder
-
- All Implemented Interfaces:
DocumentationRuleOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DocumentationRule
public static final class DocumentationRule.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder> implements DocumentationRuleOrBuilder
A documentation rule provides information about individual API elements.
Protobuf typegoogle.api.DocumentationRule
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentationRule.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentationRulebuild()DocumentationRulebuildPartial()DocumentationRule.Builderclear()DocumentationRule.BuilderclearDeprecationDescription()Deprecation description of the selected element(s).DocumentationRule.BuilderclearDescription()Description of the selected proto element (e.g.DocumentationRule.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DocumentationRule.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DocumentationRule.BuilderclearSelector()The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value.DocumentationRule.Builderclone()DocumentationRulegetDefaultInstanceForType()StringgetDeprecationDescription()Deprecation description of the selected element(s).com.google.protobuf.ByteStringgetDeprecationDescriptionBytes()Deprecation description of the selected element(s).StringgetDescription()Description of the selected proto element (e.g.com.google.protobuf.ByteStringgetDescriptionBytes()Description of the selected proto element (e.g.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetSelector()The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value.com.google.protobuf.ByteStringgetSelectorBytes()The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DocumentationRule.BuildermergeFrom(DocumentationRule other)DocumentationRule.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DocumentationRule.BuildermergeFrom(com.google.protobuf.Message other)DocumentationRule.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DocumentationRule.BuildersetDeprecationDescription(String value)Deprecation description of the selected element(s).DocumentationRule.BuildersetDeprecationDescriptionBytes(com.google.protobuf.ByteString value)Deprecation description of the selected element(s).DocumentationRule.BuildersetDescription(String value)Description of the selected proto element (e.g.DocumentationRule.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)Description of the selected proto element (e.g.DocumentationRule.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DocumentationRule.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DocumentationRule.BuildersetSelector(String value)The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value.DocumentationRule.BuildersetSelectorBytes(com.google.protobuf.ByteString value)The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value.DocumentationRule.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
clear
public DocumentationRule.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.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.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
getDefaultInstanceForType
public DocumentationRule getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DocumentationRule build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DocumentationRule buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DocumentationRule.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
setField
public DocumentationRule.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
clearField
public DocumentationRule.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
clearOneof
public DocumentationRule.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
setRepeatedField
public DocumentationRule.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
addRepeatedField
public DocumentationRule.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
mergeFrom
public DocumentationRule.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DocumentationRule.Builder>
-
mergeFrom
public DocumentationRule.Builder mergeFrom(DocumentationRule other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
mergeFrom
public DocumentationRule.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<DocumentationRule.Builder>- Throws:
IOException
-
getSelector
public String getSelector()
The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
string selector = 1;- Specified by:
getSelectorin interfaceDocumentationRuleOrBuilder- Returns:
- The selector.
-
getSelectorBytes
public com.google.protobuf.ByteString getSelectorBytes()
The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
string selector = 1;- Specified by:
getSelectorBytesin interfaceDocumentationRuleOrBuilder- Returns:
- The bytes for selector.
-
setSelector
public DocumentationRule.Builder setSelector(String value)
The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
string selector = 1;- Parameters:
value- The selector to set.- Returns:
- This builder for chaining.
-
clearSelector
public DocumentationRule.Builder clearSelector()
The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
string selector = 1;- Returns:
- This builder for chaining.
-
setSelectorBytes
public DocumentationRule.Builder setSelectorBytes(com.google.protobuf.ByteString value)
The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
string selector = 1;- Parameters:
value- The bytes for selector to set.- Returns:
- This builder for chaining.
-
getDescription
public String getDescription()
Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
string description = 2;- Specified by:
getDescriptionin interfaceDocumentationRuleOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
string description = 2;- Specified by:
getDescriptionBytesin interfaceDocumentationRuleOrBuilder- Returns:
- The bytes for description.
-
setDescription
public DocumentationRule.Builder setDescription(String value)
Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
string description = 2;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public DocumentationRule.Builder clearDescription()
Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
string description = 2;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public DocumentationRule.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
string description = 2;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
getDeprecationDescription
public String getDeprecationDescription()
Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
string deprecation_description = 3;- Specified by:
getDeprecationDescriptionin interfaceDocumentationRuleOrBuilder- Returns:
- The deprecationDescription.
-
getDeprecationDescriptionBytes
public com.google.protobuf.ByteString getDeprecationDescriptionBytes()
Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
string deprecation_description = 3;- Specified by:
getDeprecationDescriptionBytesin interfaceDocumentationRuleOrBuilder- Returns:
- The bytes for deprecationDescription.
-
setDeprecationDescription
public DocumentationRule.Builder setDeprecationDescription(String value)
Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
string deprecation_description = 3;- Parameters:
value- The deprecationDescription to set.- Returns:
- This builder for chaining.
-
clearDeprecationDescription
public DocumentationRule.Builder clearDeprecationDescription()
Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
string deprecation_description = 3;- Returns:
- This builder for chaining.
-
setDeprecationDescriptionBytes
public DocumentationRule.Builder setDeprecationDescriptionBytes(com.google.protobuf.ByteString value)
Deprecation description of the selected element(s). It can be provided if an element is marked as `deprecated`.
string deprecation_description = 3;- Parameters:
value- The bytes for deprecationDescription to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final DocumentationRule.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
mergeUnknownFields
public final DocumentationRule.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DocumentationRule.Builder>
-
-