public static final class FileDiff.Builder extends GeneratedMessage.Builder<FileDiff.Builder> implements FileDiffOrBuilderMessage for a file diff.
Protobuf type google.cloud.developerconnect.v1.FileDiff
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > FileDiff.BuilderImplements
FileDiffOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public FileDiff build()| Returns | |
|---|---|
| Type | Description |
FileDiff |
|
buildPartial()
public FileDiff buildPartial()| Returns | |
|---|---|
| Type | Description |
FileDiff |
|
clear()
public FileDiff.Builder clear()| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
clearPatch()
public FileDiff.Builder clearPatch() 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 |
FileDiff.Builder |
This builder for chaining. |
clearPath()
public FileDiff.Builder clearPath()Relative path to the file in the repository.
string path = 1;
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
clearStatus()
public FileDiff.Builder clearStatus()Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
string status = 2;
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public FileDiff getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
FileDiff |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(FileDiff other)
public FileDiff.Builder mergeFrom(FileDiff other)| Parameter | |
|---|---|
| Name | Description |
other |
FileDiff |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public FileDiff.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public FileDiff.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
setPatch(String value)
public FileDiff.Builder setPatch(String value) Standard unified diff patch hunk for the file. Only populated when
path_filters is specified in the request; otherwise empty.
string patch = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe patch to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setPatchBytes(ByteString value)
public FileDiff.Builder setPatchBytes(ByteString value) Standard unified diff patch hunk for the file. Only populated when
path_filters is specified in the request; otherwise empty.
string patch = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for patch to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setPath(String value)
public FileDiff.Builder setPath(String value)Relative path to the file in the repository.
string path = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe path to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setPathBytes(ByteString value)
public FileDiff.Builder setPathBytes(ByteString value)Relative path to the file in the repository.
string path = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for path to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setStatus(String value)
public FileDiff.Builder setStatus(String value)Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
string status = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe status to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setStatusBytes(ByteString value)
public FileDiff.Builder setStatusBytes(ByteString value)Status of change: "ADDED", "MODIFIED", "REMOVED", "RENAMED".
string status = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for status to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |