public static final class FileDiff.Builder extends GeneratedMessageV3.Builder<FileDiff.Builder> implements FileDiffOrBuilderMetadata of a FileDiff. FileDiff represents a single file diff in a pull request.
Protobuf type google.cloud.securesourcemanager.v1.FileDiff
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > FileDiff.BuilderImplements
FileDiffOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public FileDiff.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
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 |
|
clearAction()
public FileDiff.Builder clearAction()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.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public FileDiff.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
clearName()
public FileDiff.Builder clearName()Output only. The name of the file.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public FileDiff.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
clearPatch()
public FileDiff.Builder clearPatch()Output only. The git patch containing the file changes.
string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
clearSha()
public FileDiff.Builder clearSha()Output only. The commit pointing to the file changes.
string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
clone()
public FileDiff.Builder clone()| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
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 |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
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. |
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. |
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.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 |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final FileDiff.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
setAction(FileDiff.Action value)
public FileDiff.Builder setAction(FileDiff.Action value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
FileDiff.ActionThe action to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setActionValue(int value)
public FileDiff.Builder setActionValue(int value)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];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for action to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public FileDiff.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
setName(String value)
public FileDiff.Builder setName(String value)Output only. The name of the file.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public FileDiff.Builder setNameBytes(ByteString value)Output only. The name of the file.
string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setPatch(String value)
public FileDiff.Builder setPatch(String value)Output only. The git patch containing the file changes.
string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| 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)Output only. The git patch containing the file changes.
string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for patch to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public FileDiff.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|
setSha(String value)
public FileDiff.Builder setSha(String value)Output only. The commit pointing to the file changes.
string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sha to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setShaBytes(ByteString value)
public FileDiff.Builder setShaBytes(ByteString value)Output only. The commit pointing to the file changes.
string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sha to set. |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final FileDiff.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
FileDiff.Builder |
|