public static final class License.Builder extends GeneratedMessageV3.Builder<License.Builder> implements LicenseOrBuilder
License information.
Protobuf type grafeas.v1.License
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > License.BuilderImplements
LicenseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public License.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field | FieldDescriptor |
value | Object |
Returns | |
---|---|
Type | Description |
License.Builder |
build()
public License build()
Returns | |
---|---|
Type | Description |
License |
buildPartial()
public License buildPartial()
Returns | |
---|---|
Type | Description |
License |
clear()
public License.Builder clear()
Returns | |
---|---|
Type | Description |
License.Builder |
clearComments()
public License.Builder clearComments()
Comments
string comments = 2;
Returns | |
---|---|
Type | Description |
License.Builder | This builder for chaining. |
clearExpression()
public License.Builder clearExpression()
Often a single license can be used to represent the licensing terms. Sometimes it is necessary to include a choice of one or more licenses or some combination of license identifiers. Examples: "LGPL-2.1-only OR MIT", "LGPL-2.1-only AND MIT", "GPL-2.0-or-later WITH Bison-exception-2.2".
string expression = 1;
Returns | |
---|---|
Type | Description |
License.Builder | This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public License.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field | FieldDescripto |