Class Hash (3.35.0)

public final class Hash extends GeneratedMessageV3 implements HashOrBuilder

Container message for hash values.

Protobuf type google.devtools.cloudbuild.v1.Hash

Implements

HashOrBuilder

Static Fields

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Hash getDefaultInstance()
Returns
TypeDescription
Hash

getDescriptor()

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

newBuilder()

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

newBuilder(Hash prototype)

public static Hash.Builder newBuilder(Hash prototype)
Parameter
NameDescription
prototypeHash
Returns
TypeDescription
Hash.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Hash getDefaultInstanceForType()
Returns
TypeDescription
Hash

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getType()

public Hash.HashType getType()

The type of hash that was performed.

.google.devtools.cloudbuild.v1.Hash.HashType type = 1;

Returns
TypeDescription
Hash.HashType

The type.

getTypeValue()

public int getTypeValue()

The type of hash that was performed.

.google.devtools.cloudbuild.v1.Hash.HashType type = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for type.

getValue()

public ByteString getValue()

The hash value.

bytes value = 2;

Returns
TypeDescription
ByteString

The value.

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 Hash.Builder newBuilderForType()
Returns
TypeDescription
Hash.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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