Class FileDiff.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder>
com.google.cloud.securesourcemanager.v1.FileDiff.Builder
All Implemented Interfaces:
FileDiffOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
FileDiff

public static final class FileDiff.Builder extends com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder> implements FileDiffOrBuilder
 Metadata of a FileDiff. FileDiff represents a single file diff in a pull
 request.
 
Protobuf type google.cloud.securesourcemanager.v1.FileDiff
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder>
    • clear

      public FileDiff.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder>
    • getDefaultInstanceForType

      public FileDiff getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public FileDiff build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public FileDiff buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public FileDiff.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FileDiff.Builder>
    • mergeFrom

      public FileDiff.Builder mergeFrom(FileDiff other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<FileDiff.Builder>
    • mergeFrom

      public FileDiff.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<FileDiff.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Output only. The name of the file.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getName in interface FileDiffOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Output only. The name of the file.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNameBytes in interface FileDiffOrBuilder
      Returns:
      The bytes for name.
    • setName

      public FileDiff.Builder setName(String value)
       Output only. The name of the file.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public FileDiff.Builder clearName()
       Output only. The name of the file.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setNameBytes

      public FileDiff.Builder setNameBytes(com.google.protobuf.ByteString value)
       Output only. The name of the file.
       
      string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getActionValue in interface FileDiffOrBuilder
      Returns:
      The enum numeric value on the wire for action.
    • setActionValue

      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];
      Parameters:
      value - The enum numeric value on the wire for action to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getAction in interface FileDiffOrBuilder
      Returns:
      The action.
    • setAction

      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];
      Parameters:
      value - The action to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getSha

      public String getSha()
       Output only. The commit pointing to the file changes.
       
      string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getSha in interface FileDiffOrBuilder
      Returns:
      The sha.
    • getShaBytes

      public com.google.protobuf.ByteString getShaBytes()
       Output only. The commit pointing to the file changes.
       
      string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getShaBytes in interface FileDiffOrBuilder
      Returns:
      The bytes for sha.
    • setSha

      public FileDiff.Builder setSha(String value)
       Output only. The commit pointing to the file changes.
       
      string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The sha to set.
      Returns:
      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:
      This builder for chaining.
    • setShaBytes

      public FileDiff.Builder setShaBytes(com.google.protobuf.ByteString value)
       Output only. The commit pointing to the file changes.
       
      string sha = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for sha to set.
      Returns:
      This builder for chaining.
    • getPatch

      public String getPatch()
       Output only. The git patch containing the file changes.
       
      string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPatch in interface FileDiffOrBuilder
      Returns:
      The patch.
    • getPatchBytes

      public com.google.protobuf.ByteString getPatchBytes()
       Output only. The git patch containing the file changes.
       
      string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPatchBytes in interface FileDiffOrBuilder
      Returns:
      The bytes for patch.
    • setPatch

      public FileDiff.Builder setPatch(String value)
       Output only. The git patch containing the file changes.
       
      string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The patch to set.
      Returns:
      This builder for chaining.
    • clearPatch

      public FileDiff.Builder clearPatch()
       Output only. The git patch containing the file changes.
       
      string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPatchBytes

      public FileDiff.Builder setPatchBytes(com.google.protobuf.ByteString value)
       Output only. The git patch containing the file changes.
       
      string patch = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for patch to set.
      Returns:
      This builder for chaining.