Class CreateServiceConnectionPolicyRequest.Builder (1.82.0)

public static final class CreateServiceConnectionPolicyRequest.Builder extends GeneratedMessage.Builder<CreateServiceConnectionPolicyRequest.Builder> implements CreateServiceConnectionPolicyRequestOrBuilder

Request for CreateServiceConnectionPolicy.

Protobuf type google.cloud.networkconnectivity.v1.CreateServiceConnectionPolicyRequest

Static Methods

getDescriptor()

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

Methods

build()

public CreateServiceConnectionPolicyRequest build()
Returns
Type Description
CreateServiceConnectionPolicyRequest

buildPartial()

public CreateServiceConnectionPolicyRequest buildPartial()
Returns
Type Description
CreateServiceConnectionPolicyRequest

clear()

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

clearParent()

public CreateServiceConnectionPolicyRequest.Builder clearParent()

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

clearRequestId()

public CreateServiceConnectionPolicyRequest.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 since 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 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

clearServiceConnectionPolicy()

public CreateServiceConnectionPolicyRequest.Builder clearServiceConnectionPolicy()

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

clearServiceConnectionPolicyId()

public CreateServiceConnectionPolicyRequest.Builder clearServiceConnectionPolicyId()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string service_connection_policy_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

getDefaultInstanceForType()

public CreateServiceConnectionPolicyRequest getDefaultInstanceForType()
Returns
Type Description
CreateServiceConnectionPolicyRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

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 since 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 = 4 [(.google.api.field_behavior) = OPTIONAL];

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 since 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 = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

getServiceConnectionPolicy()

public ServiceConnectionPolicy getServiceConnectionPolicy()

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceConnectionPolicy

The serviceConnectionPolicy.

getServiceConnectionPolicyBuilder()

public ServiceConnectionPolicy.Builder getServiceConnectionPolicyBuilder()

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceConnectionPolicy.Builder

getServiceConnectionPolicyId()

public String getServiceConnectionPolicyId()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string service_connection_policy_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The serviceConnectionPolicyId.

getServiceConnectionPolicyIdBytes()

public ByteString getServiceConnectionPolicyIdBytes()

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string service_connection_policy_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for serviceConnectionPolicyId.

getServiceConnectionPolicyOrBuilder()

public ServiceConnectionPolicyOrBuilder getServiceConnectionPolicyOrBuilder()

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ServiceConnectionPolicyOrBuilder

hasServiceConnectionPolicy()

public boolean hasServiceConnectionPolicy()

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the serviceConnectionPolicy field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateServiceConnectionPolicyRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeServiceConnectionPolicy(ServiceConnectionPolicy value)

public CreateServiceConnectionPolicyRequest.Builder mergeServiceConnectionPolicy(ServiceConnectionPolicy value)

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServiceConnectionPolicy
Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

setParent(String value)

public CreateServiceConnectionPolicyRequest.Builder setParent(String value)

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateServiceConnectionPolicyRequest.Builder setParentBytes(ByteString value)

Required. The parent resource's name of the ServiceConnectionPolicy. ex. projects/123/locations/us-east1

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

setRequestId(String value)

public CreateServiceConnectionPolicyRequest.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 since 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 = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateServiceConnectionPolicyRequest.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 since 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 = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

setServiceConnectionPolicy(ServiceConnectionPolicy value)

public CreateServiceConnectionPolicyRequest.Builder setServiceConnectionPolicy(ServiceConnectionPolicy value)

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ServiceConnectionPolicy
Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

setServiceConnectionPolicy(ServiceConnectionPolicy.Builder builderForValue)

public CreateServiceConnectionPolicyRequest.Builder setServiceConnectionPolicy(ServiceConnectionPolicy.Builder builderForValue)

Required. Initial values for a new ServiceConnectionPolicies

.google.cloud.networkconnectivity.v1.ServiceConnectionPolicy service_connection_policy = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ServiceConnectionPolicy.Builder
Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

setServiceConnectionPolicyId(String value)

public CreateServiceConnectionPolicyRequest.Builder setServiceConnectionPolicyId(String value)

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string service_connection_policy_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The serviceConnectionPolicyId to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.

setServiceConnectionPolicyIdBytes(ByteString value)

public CreateServiceConnectionPolicyRequest.Builder setServiceConnectionPolicyIdBytes(ByteString value)

Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/serviceConnectionPolicies/foo') See https://google.aip.dev/122#resource-id-segments Unique per location.

string service_connection_policy_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for serviceConnectionPolicyId to set.

Returns
Type Description
CreateServiceConnectionPolicyRequest.Builder

This builder for chaining.