Class CreateConnectivityTestRequest.Builder (1.20.0)

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

Request for the CreateConnectivityTest method.

Protobuf type google.cloud.networkmanagement.v1beta1.CreateConnectivityTestRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateConnectivityTestRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

build()

public CreateConnectivityTestRequest build()
Returns
TypeDescription
CreateConnectivityTestRequest

buildPartial()

public CreateConnectivityTestRequest buildPartial()
Returns
TypeDescription
CreateConnectivityTestRequest

clear()

public CreateConnectivityTestRequest.Builder clear()
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateConnectivityTestRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateConnectivityTestRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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];

Returns
TypeDescription
CreateConnectivityTestRequest.Builder

This builder for chaining.

clearResource()

public CreateConnectivityTestRequest.Builder clearResource()

Required. A ConnectivityTest resource

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

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

This builder for chaining.

clone()

public CreateConnectivityTestRequest.Builder clone()
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateConnectivityTestRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConnectivityTestRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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];

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

Returns
TypeDescription
ByteString

The bytes for parent.

getResource()

public ConnectivityTest getResource()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
ConnectivityTest

The resource.

getResourceBuilder()

public ConnectivityTest.Builder getResourceBuilder()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
ConnectivityTest.Builder

getResourceOrBuilder()

public ConnectivityTestOrBuilder getResourceOrBuilder()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for testId.

hasResource()

public boolean hasResource()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
boolean

Whether the resource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CreateConnectivityTestRequest other)

public CreateConnectivityTestRequest.Builder mergeFrom(CreateConnectivityTestRequest other)
Parameter
NameDescription
otherCreateConnectivityTestRequest
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateConnectivityTestRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CreateConnectivityTestRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

mergeResource(ConnectivityTest value)

public CreateConnectivityTestRequest.Builder mergeResource(ConnectivityTest value)

Required. A ConnectivityTest resource

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

Parameter
NameDescription
valueConnectivityTest
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectivityTestRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateConnectivityTestRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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];

Parameter
NameDescription
valueString

The parent to set.

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

Parameter
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

setResource(ConnectivityTest value)

public CreateConnectivityTestRequest.Builder setResource(ConnectivityTest value)

Required. A ConnectivityTest resource

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

Parameter
NameDescription
valueConnectivityTest
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

setResource(ConnectivityTest.Builder builderForValue)

public CreateConnectivityTestRequest.Builder setResource(ConnectivityTest.Builder builderForValue)

Required. A ConnectivityTest resource

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

Parameter
NameDescription
builderForValueConnectivityTest.Builder
Returns
TypeDescription
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
NameDescription
valueString

The testId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for testId to set.

Returns
TypeDescription
CreateConnectivityTestRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateConnectivityTestRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides