public final class FileDiff extends GeneratedMessage implements FileDiffOrBuilderMessage for a file diff.
Protobuf type google.cloud.developerconnect.v1.FileDiff
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > FileDiffImplements
FileDiffOrBuilderStatic Fields
PATCH_FIELD_NUMBER
public static final int PATCH_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
STATUS_FIELD_NUMBER
public static final int STATUS_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 |
|
getDefaultInstanceForType()
public FileDiff getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FileDiff |
|
getParserForType()
public Parser<FileDiff> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<FileDiff> |
|
getPatch()
public String getPatch() Standard unified diff patch hunk for the file. Only populated when
path_filters is specified in the request; otherwise empty.
string patch = 3;
| Returns | |
|---|---|
| Type | Description |
String |
The patch. |
getPatchBytes()
public ByteString getPatchBytes() Standard unified diff patch hunk for the file. Only populated when
path_filters is specified in the request; otherwise empty.
string patch = 3;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for patch. |
getPath()
public String getPath()Relative path to the file in the repository.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
String |
The path. |
getPathBytes()
public ByteString getPathBytes()Relative path to the file in the repository.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for path. |
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
getStatus()
public String getStatus()Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
string status = 2;
| Returns | |
|---|---|
| Type | Description |
String |
The status. |
getStatusBytes()
public ByteString getStatusBytes()Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
string status = 2;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for status. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public FileDiff.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected FileDiff.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
toBuilder()
public FileDiff.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|