Class License (2.9.0)

public final class License extends GeneratedMessageV3 implements LicenseOrBuilder

License information.

Protobuf type grafeas.v1.License

Implements

LicenseOrBuilder

Static Fields

COMMENTS_FIELD_NUMBER

public static final int COMMENTS_FIELD_NUMBER
Field Value
TypeDescription
int

EXPRESSION_FIELD_NUMBER

public static final int EXPRESSION_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static License getDefaultInstance()
Returns
TypeDescription
License

getDescriptor()

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

newBuilder()

public static License.Builder newBuilder()
Returns
TypeDescription
License.Builder

newBuilder(License prototype)

public static License.Builder newBuilder(License prototype)
Parameter
NameDescription
prototypeLicense
Returns
TypeDescription
License.Builder

parseDelimitedFrom(InputStream input)

public static License parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static License parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static License parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static License parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static License parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static License parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static License parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static License parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static License parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static License parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static License parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static License parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
License
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<License> parser()
Returns
TypeDescription
Parser<License>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

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

string expression = 1;

Returns
TypeDescription
ByteString

The bytes for expression.

getParserForType()

public Parser<License> getParserForType()
Returns
TypeDescription
Parser<License>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public License.Builder newBuilderForType()
Returns
TypeDescription
License.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected License.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
License.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public License.Builder toBuilder()
Returns
TypeDescription
License.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException