Class AliasContext (2.3.0)

public final class AliasContext extends GeneratedMessageV3 implements AliasContextOrBuilder

An alias to a repo revision.

Protobuf type grafeas.v1.AliasContext

Static Fields

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AliasContext getDefaultInstance()
Returns
TypeDescription
AliasContext

getDescriptor()

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

newBuilder()

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

newBuilder(AliasContext prototype)

public static AliasContext.Builder newBuilder(AliasContext prototype)
Parameter
NameDescription
prototypeAliasContext
Returns
TypeDescription
AliasContext.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public AliasContext getDefaultInstanceForType()
Returns
TypeDescription
AliasContext

getKind()

public AliasContext.Kind getKind()

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Returns
TypeDescription
AliasContext.Kind

The kind.

getKindValue()

public int getKindValue()

The alias kind.

.grafeas.v1.AliasContext.Kind kind = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

The alias name.

string name = 2;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

The alias name.

string name = 2;

Returns
TypeDescription
ByteString

The bytes for name.

getParserForType()

public Parser<AliasContext> getParserForType()
Returns
TypeDescription
Parser<AliasContext>
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 AliasContext.Builder newBuilderForType()
Returns
TypeDescription
AliasContext.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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