Class License.Builder (2.31.0)

public static final class License.Builder extends GeneratedMessageV3.Builder<License.Builder> implements LicenseOrBuilder

License information.

Protobuf type grafeas.v1.License

Implements

LicenseOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public License build()
Returns
TypeDescription
License

buildPartial()

public License buildPartial()
Returns
TypeDescription
License

clear()

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

clearComments()

public License.Builder clearComments()

Comments

string comments = 2;

Returns
TypeDescription
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
TypeDescription
License.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getComments()

public String getComments()

Comments

string comments = 2;

Returns
TypeDescription
String

The comments.

getCommentsBytes()

public ByteString getCommentsBytes()

Comments

string comments = 2;

Returns
TypeDescription
ByteString

The bytes for comments.

getDefaultInstanceForType()

public License getDefaultInstanceForType()
Returns
TypeDescription
License

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getExpression()

public String getExpression()

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
TypeDescription
String

The expression.

getExpressionBytes()

public ByteString getExpressionBytes()

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".