Class FileDiff (0.40.0)

public final class FileDiff extends GeneratedMessageV3 implements FileDiffOrBuilder

Metadata of a FileDiff. FileDiff represents a single file diff in a pull request.

Protobuf type google.cloud.securesourcemanager.v1.FileDiff

Implements

FileDiffOrBuilder

Static Fields

ACTION_FIELD_NUMBER

public static final int ACTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

PATCH_FIELD_NUMBER

public static final int PATCH_FIELD_NUMBER
Field Value
Type Description
int

SHA_FIELD_NUMBER

public static final int SHA_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static FileDiff getDefaultInstance()
Returns
Type Description
FileDiff

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static FileDiff.Builder newBuilder()
Returns
Type Description
FileDiff.Builder

newBuilder(FileDiff prototype)

public static FileDiff.Builder newBuilder(FileDiff prototype)
Parameter
Name Description
prototype FileDiff
Returns
Type Description
FileDiff.Builder

parseDelimitedFrom(InputStream input)

public static FileDiff parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static FileDiff parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static FileDiff parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static FileDiff parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static FileDiff parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static FileDiff parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static FileDiff parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
FileDiff
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<FileDiff> parser()
Returns
Type Description
Parser<FileDiff>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAction()

public FileDiff.Action getAction()

Output only. The action taken on the file (eg. added, modified, deleted).

.google.cloud.securesourcemanager.v1.FileDiff.Action action = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
FileDiff.Action

The action.

getActionValue()

public int getActionValue()

Output only. The action taken on the file (eg. added, modified, deleted).

.google.cloud.securesourcemanager.v1.FileDiff.Action action = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for action.

getDefaultInstanceForType()

public FileDiff getDefaultInstanceForType()
Returns
Type Description
FileDiff

getName()

public String getName()

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the file.

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for name.

getParserForType()

public Parser<FileDiff> getParserForType()
Returns
Type Description
Parser<FileDiff>
Overrides

getPatch()

public String getPatch()

Output only. The git patch containing the file changes.

string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The patch.

getPatchBytes()

public ByteString getPatchBytes()

Output only. The git patch containing the file changes.

string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for patch.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getSha()

public String getSha()

Output only. The commit pointing to the file changes.

string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The sha.

getShaBytes()

public ByteString getShaBytes()

Output only. The commit pointing to the file changes.

string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for sha.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public FileDiff.Builder newBuilderForType()
Returns
Type Description
FileDiff.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected FileDiff.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
FileDiff.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public FileDiff.Builder toBuilder()
Returns
Type Description
FileDiff.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException