Class Issue.Builder

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

public static final class Issue.Builder extends com.google.protobuf.GeneratedMessage.Builder<Issue.Builder> implements IssueOrBuilder
 Metadata of an Issue.
 
Protobuf type google.cloud.securesourcemanager.v1.Issue
  • 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<Issue.Builder>
    • clear

      public Issue.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<Issue.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<Issue.Builder>
    • getDefaultInstanceForType

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

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

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

      public Issue.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<Issue.Builder>
    • mergeFrom

      public Issue.Builder mergeFrom(Issue other)
    • isInitialized

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

      public Issue.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<Issue.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Identifier. Unique identifier for an issue. The issue id is generated by
       the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface IssueOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. Unique identifier for an issue. The issue id is generated by
       the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface IssueOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Issue.Builder setName(String value)
       Identifier. Unique identifier for an issue. The issue id is generated by
       the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Issue.Builder clearName()
       Identifier. Unique identifier for an issue. The issue id is generated by
       the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Issue.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. Unique identifier for an issue. The issue id is generated by
       the server. Format:
       `projects/{project}/locations/{location}/repositories/{repository}/issues/{issue_id}`
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getTitle

      public String getTitle()
       Required. Issue title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTitle in interface IssueOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       Required. Issue title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTitleBytes in interface IssueOrBuilder
      Returns:
      The bytes for title.
    • setTitle

      public Issue.Builder setTitle(String value)
       Required. Issue title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

      public Issue.Builder clearTitle()
       Required. Issue title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTitleBytes

      public Issue.Builder setTitleBytes(com.google.protobuf.ByteString value)
       Required. Issue title.
       
      string title = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for title to set.
      Returns:
      This builder for chaining.
    • getBody

      public String getBody()
       Optional. Issue body. Provides a detailed description of the issue.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBody in interface IssueOrBuilder
      Returns:
      The body.
    • getBodyBytes

      public com.google.protobuf.ByteString getBodyBytes()
       Optional. Issue body. Provides a detailed description of the issue.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBodyBytes in interface IssueOrBuilder
      Returns:
      The bytes for body.
    • setBody

      public Issue.Builder setBody(String value)
       Optional. Issue body. Provides a detailed description of the issue.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The body to set.
      Returns:
      This builder for chaining.
    • clearBody

      public Issue.Builder clearBody()
       Optional. Issue body. Provides a detailed description of the issue.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setBodyBytes

      public Issue.Builder setBodyBytes(com.google.protobuf.ByteString value)
       Optional. Issue body. Provides a detailed description of the issue.
       
      string body = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for body to set.
      Returns:
      This builder for chaining.
    • getStateValue

      public int getStateValue()
       Output only. State of the issue.
       
      .google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface IssueOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Issue.Builder setStateValue(int value)
       Output only. State of the issue.
       
      .google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Issue.State getState()
       Output only. State of the issue.
       
      .google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface IssueOrBuilder
      Returns:
      The state.
    • setState

      public Issue.Builder setState(Issue.State value)
       Output only. State of the issue.
       
      .google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Issue.Builder clearState()
       Output only. State of the issue.
       
      .google.cloud.securesourcemanager.v1.Issue.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface IssueOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface IssueOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Issue.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Issue.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Issue.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Issue.Builder clearCreateTime()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation timestamp.
       
      .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface IssueOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface IssueOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface IssueOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Issue.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Issue.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Issue.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Issue.Builder clearUpdateTime()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last updated timestamp.
       
      .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface IssueOrBuilder
    • hasCloseTime

      public boolean hasCloseTime()
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCloseTime in interface IssueOrBuilder
      Returns:
      Whether the closeTime field is set.
    • getCloseTime

      public com.google.protobuf.Timestamp getCloseTime()
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloseTime in interface IssueOrBuilder
      Returns:
      The closeTime.
    • setCloseTime

      public Issue.Builder setCloseTime(com.google.protobuf.Timestamp value)
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCloseTime

      public Issue.Builder setCloseTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCloseTime

      public Issue.Builder mergeCloseTime(com.google.protobuf.Timestamp value)
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCloseTime

      public Issue.Builder clearCloseTime()
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCloseTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCloseTimeBuilder()
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCloseTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCloseTimeOrBuilder()
       Output only. Close timestamp (if closed). Cleared when is re-opened.
       
      .google.protobuf.Timestamp close_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCloseTimeOrBuilder in interface IssueOrBuilder
    • getEtag

      public String getEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtag in interface IssueOrBuilder
      Returns:
      The etag.
    • getEtagBytes

      public com.google.protobuf.ByteString getEtagBytes()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEtagBytes in interface IssueOrBuilder
      Returns:
      The bytes for etag.
    • setEtag

      public Issue.Builder setEtag(String value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The etag to set.
      Returns:
      This builder for chaining.
    • clearEtag

      public Issue.Builder clearEtag()
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setEtagBytes

      public Issue.Builder setEtagBytes(com.google.protobuf.ByteString value)
       Optional. This checksum is computed by the server based on the value of
       other fields, and may be sent on update and delete requests to ensure the
       client has an up-to-date value before proceeding.
       
      string etag = 8 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for etag to set.
      Returns:
      This builder for chaining.