Class UpdateInsightsConfigRequest.Builder

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

public static final class UpdateInsightsConfigRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<UpdateInsightsConfigRequest.Builder> implements UpdateInsightsConfigRequestOrBuilder
 Request for updating an InsightsConfig.
 
Protobuf type google.cloud.developerconnect.v1.UpdateInsightsConfigRequest
  • 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<UpdateInsightsConfigRequest.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<UpdateInsightsConfigRequest.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<UpdateInsightsConfigRequest.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public UpdateInsightsConfigRequest.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<UpdateInsightsConfigRequest.Builder>
      Throws:
      IOException
    • hasInsightsConfig

      public boolean hasInsightsConfig()
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasInsightsConfig in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      Whether the insightsConfig field is set.
    • getInsightsConfig

      public InsightsConfig getInsightsConfig()
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInsightsConfig in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      The insightsConfig.
    • setInsightsConfig

      public UpdateInsightsConfigRequest.Builder setInsightsConfig(InsightsConfig value)
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • setInsightsConfig

      public UpdateInsightsConfigRequest.Builder setInsightsConfig(InsightsConfig.Builder builderForValue)
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeInsightsConfig

      public UpdateInsightsConfigRequest.Builder mergeInsightsConfig(InsightsConfig value)
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearInsightsConfig

      public UpdateInsightsConfigRequest.Builder clearInsightsConfig()
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInsightsConfigBuilder

      public InsightsConfig.Builder getInsightsConfigBuilder()
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getInsightsConfigOrBuilder

      public InsightsConfigOrBuilder getInsightsConfigOrBuilder()
       Required. The resource being updated.
       
      .google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getInsightsConfigOrBuilder in interface UpdateInsightsConfigRequestOrBuilder
    • getRequestId

      public String getRequestId()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server will know to
       ignore the request if it has already been completed. The server will
       guarantee that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and the
       request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestId in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      The requestId.
    • getRequestIdBytes

      public com.google.protobuf.ByteString getRequestIdBytes()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server will know to
       ignore the request if it has already been completed. The server will
       guarantee that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and the
       request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Specified by:
      getRequestIdBytes in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      The bytes for requestId.
    • setRequestId

      public UpdateInsightsConfigRequest.Builder setRequestId(String value)
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server will know to
       ignore the request if it has already been completed. The server will
       guarantee that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and the
       request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The requestId to set.
      Returns:
      This builder for chaining.
    • clearRequestId

      public UpdateInsightsConfigRequest.Builder clearRequestId()
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server will know to
       ignore the request if it has already been completed. The server will
       guarantee that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and the
       request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setRequestIdBytes

      public UpdateInsightsConfigRequest.Builder setRequestIdBytes(com.google.protobuf.ByteString value)
       Optional. An optional request ID to identify requests. Specify a unique
       request ID so that if you must retry your request, the server will know to
       ignore the request if it has already been completed. The server will
       guarantee that for at least 60 minutes after the first request.
      
       For example, consider a situation where you make an initial request and the
       request times out. If you make the request again with the same request
       ID, the server can check if original operation with the same request ID
       was received, and if so, will ignore the second request. This prevents
       clients from accidentally creating duplicate commitments.
      
       The request ID must be a valid UUID with the exception that zero UUID is
       not supported (00000000-0000-0000-0000-000000000000).
       
      string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for requestId to set.
      Returns:
      This builder for chaining.
    • getAllowMissing

      public boolean getAllowMissing()
       Optional. If set to true, and the insightsConfig is not found a new
       insightsConfig will be created. In this situation `update_mask` is ignored.
       The creation will succeed only if the input insightsConfig has all the
       necessary information (e.g a github_config with both  user_oauth_token and
       installation_id properties).
       
      bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllowMissing in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      The allowMissing.
    • setAllowMissing

      public UpdateInsightsConfigRequest.Builder setAllowMissing(boolean value)
       Optional. If set to true, and the insightsConfig is not found a new
       insightsConfig will be created. In this situation `update_mask` is ignored.
       The creation will succeed only if the input insightsConfig has all the
       necessary information (e.g a github_config with both  user_oauth_token and
       installation_id properties).
       
      bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allowMissing to set.
      Returns:
      This builder for chaining.
    • clearAllowMissing

      public UpdateInsightsConfigRequest.Builder clearAllowMissing()
       Optional. If set to true, and the insightsConfig is not found a new
       insightsConfig will be created. In this situation `update_mask` is ignored.
       The creation will succeed only if the input insightsConfig has all the
       necessary information (e.g a github_config with both  user_oauth_token and
       installation_id properties).
       
      bool allow_missing = 4 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getValidateOnly

      public boolean getValidateOnly()
       Optional. If set, validate the request, but do not actually post it.
       
      bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getValidateOnly in interface UpdateInsightsConfigRequestOrBuilder
      Returns:
      The validateOnly.
    • setValidateOnly

      public UpdateInsightsConfigRequest.Builder setValidateOnly(boolean value)
       Optional. If set, validate the request, but do not actually post it.
       
      bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The validateOnly to set.
      Returns:
      This builder for chaining.
    • clearValidateOnly

      public UpdateInsightsConfigRequest.Builder clearValidateOnly()
       Optional. If set, validate the request, but do not actually post it.
       
      bool validate_only = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.