Class CreateConnectivityTestRequest.Builder (1.55.0)

public static final class CreateConnectivityTestRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectivityTestRequest.Builder> implements CreateConnectivityTestRequestOrBuilder

Request for the CreateConnectivityTest method.

Protobuf type google.cloud.networkmanagement.v1.CreateConnectivityTestRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConnectivityTestRequest build()
Returns
Type Description
CreateConnectivityTestRequest

buildPartial()

public CreateConnectivityTestRequest buildPartial()
Returns
Type Description
CreateConnectivityTestRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConnectivityTestRequest.Builder clearParent()

Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global

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

Returns
Type Description
CreateConnectivityTestRequest.Builder

This builder for chaining.

clearResource()

public CreateConnectivityTestRequest.Builder clearResource()

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateConnectivityTestRequest.Builder

clearTestId()

public CreateConnectivityTestRequest.Builder clearTestId()

Required. The logical name of the Connectivity Test in your project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-40 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project

string test_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateConnectivityTestRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateConnectivityTestRequest getDefaultInstanceForType()
Returns
Type Description
CreateConnectivityTestRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global

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 of the Connectivity Test to create: projects/{project_id}/locations/global

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

Returns
Type Description
ByteString

The bytes for parent.

getResource()

public ConnectivityTest getResource()

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectivityTest

The resource.

getResourceBuilder()

public ConnectivityTest.Builder getResourceBuilder()

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectivityTest.Builder

getResourceOrBuilder()

public ConnectivityTestOrBuilder getResourceOrBuilder()

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectivityTestOrBuilder

getTestId()

public String getTestId()

Required. The logical name of the Connectivity Test in your project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-40 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project

string test_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The testId.

getTestIdBytes()

public ByteString getTestIdBytes()

Required. The logical name of the Connectivity Test in your project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-40 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project

string test_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for testId.

hasResource()

public boolean hasResource()

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateConnectivityTestRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeResource(ConnectivityTest value)

public CreateConnectivityTestRequest.Builder mergeResource(ConnectivityTest value)

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectivityTest
Returns
Type Description
CreateConnectivityTestRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateConnectivityTestRequest.Builder setParent(String value)

Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateConnectivityTestRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConnectivityTestRequest.Builder setParentBytes(ByteString value)

Required. The parent resource of the Connectivity Test to create: projects/{project_id}/locations/global

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
CreateConnectivityTestRequest.Builder

This builder for chaining.

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

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

setResource(ConnectivityTest value)

public CreateConnectivityTestRequest.Builder setResource(ConnectivityTest value)

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectivityTest
Returns
Type Description
CreateConnectivityTestRequest.Builder

setResource(ConnectivityTest.Builder builderForValue)

public CreateConnectivityTestRequest.Builder setResource(ConnectivityTest.Builder builderForValue)

Required. A ConnectivityTest resource

.google.cloud.networkmanagement.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ConnectivityTest.Builder
Returns
Type Description
CreateConnectivityTestRequest.Builder

setTestId(String value)

public CreateConnectivityTestRequest.Builder setTestId(String value)

Required. The logical name of the Connectivity Test in your project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-40 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project

string test_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The testId to set.

Returns
Type Description
CreateConnectivityTestRequest.Builder

This builder for chaining.

setTestIdBytes(ByteString value)

public CreateConnectivityTestRequest.Builder setTestIdBytes(ByteString value)

Required. The logical name of the Connectivity Test in your project with the following restrictions:

  • Must contain only lowercase letters, numbers, and hyphens.
  • Must start with a letter.
  • Must be between 1-40 characters.
  • Must end with a number or a letter.
  • Must be unique within the customer project

string test_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for testId to set.

Returns
Type Description
CreateConnectivityTestRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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