Class UpdateInsightsConfigRequest.Builder (0.24.0)

public static final class UpdateInsightsConfigRequest.Builder extends GeneratedMessageV3.Builder<UpdateInsightsConfigRequest.Builder> implements UpdateInsightsConfigRequestOrBuilder

Request for updating an InsightsConfig.

Protobuf type google.cloud.developerconnect.v1.UpdateInsightsConfigRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateInsightsConfigRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

build()

public UpdateInsightsConfigRequest build()
Returns
Type Description
UpdateInsightsConfigRequest

buildPartial()

public UpdateInsightsConfigRequest buildPartial()
Returns
Type Description
UpdateInsightsConfigRequest

clear()

public UpdateInsightsConfigRequest.Builder clear()
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

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
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public UpdateInsightsConfigRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

clearInsightsConfig()

public UpdateInsightsConfigRequest.Builder clearInsightsConfig()

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateInsightsConfigRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateInsightsConfigRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

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
Type Description
UpdateInsightsConfigRequest.Builder

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
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.

clone()

public UpdateInsightsConfigRequest.Builder clone()
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

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];

Returns
Type Description
boolean

The allowMissing.

getDefaultInstanceForType()

public UpdateInsightsConfigRequest getDefaultInstanceForType()
Returns
Type Description
UpdateInsightsConfigRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInsightsConfig()

public InsightsConfig getInsightsConfig()

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsightsConfig

The insightsConfig.

getInsightsConfigBuilder()

public InsightsConfig.Builder getInsightsConfigBuilder()

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsightsConfig.Builder

getInsightsConfigOrBuilder()

public InsightsConfigOrBuilder getInsightsConfigOrBuilder()

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
InsightsConfigOrBuilder

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) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public 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) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

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];

Returns
Type Description
boolean

The validateOnly.

hasInsightsConfig()

public boolean hasInsightsConfig()

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the insightsConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(UpdateInsightsConfigRequest other)

public UpdateInsightsConfigRequest.Builder mergeFrom(UpdateInsightsConfigRequest other)
Parameter
Name Description
other UpdateInsightsConfigRequest
Returns
Type Description
UpdateInsightsConfigRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateInsightsConfigRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateInsightsConfigRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

mergeInsightsConfig(InsightsConfig value)

public UpdateInsightsConfigRequest.Builder mergeInsightsConfig(InsightsConfig value)

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InsightsConfig
Returns
Type Description
UpdateInsightsConfigRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInsightsConfigRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

setAllowMissing(boolean value)

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];

Parameter
Name Description
value boolean

The allowMissing to set.

Returns
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateInsightsConfigRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

setInsightsConfig(InsightsConfig value)

public UpdateInsightsConfigRequest.Builder setInsightsConfig(InsightsConfig value)

Required. The resource being updated.

.google.cloud.developerconnect.v1.InsightsConfig insights_config = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value InsightsConfig
Returns
Type Description
UpdateInsightsConfigRequest.Builder

setInsightsConfig(InsightsConfig.Builder builderForValue)

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];

Parameter
Name Description
builderForValue InsightsConfig.Builder
Returns
Type Description
UpdateInsightsConfigRequest.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateInsightsConfigRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

setRequestId(String value)

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) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public UpdateInsightsConfigRequest.Builder setRequestIdBytes(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) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateInsightsConfigRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateInsightsConfigRequest.Builder
Overrides

setValidateOnly(boolean value)

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];

Parameter
Name Description
value boolean

The validateOnly to set.

Returns
Type Description
UpdateInsightsConfigRequest.Builder

This builder for chaining.