Class CreateConnectivityTestRequest (1.25.0)

public final class CreateConnectivityTestRequest extends GeneratedMessageV3 implements CreateConnectivityTestRequestOrBuilder

Request for the CreateConnectivityTest method.

Protobuf type google.cloud.networkmanagement.v1.CreateConnectivityTestRequest

Static Fields

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

RESOURCE_FIELD_NUMBER

public static final int RESOURCE_FIELD_NUMBER
Field Value
TypeDescription
int

TEST_ID_FIELD_NUMBER

public static final int TEST_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CreateConnectivityTestRequest getDefaultInstance()
Returns
TypeDescription
CreateConnectivityTestRequest

getDescriptor()

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

newBuilder()

public static CreateConnectivityTestRequest.Builder newBuilder()
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

newBuilder(CreateConnectivityTestRequest prototype)

public static CreateConnectivityTestRequest.Builder newBuilder(CreateConnectivityTestRequest prototype)
Parameter
NameDescription
prototypeCreateConnectivityTestRequest
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

parseDelimitedFrom(InputStream input)

public static CreateConnectivityTestRequest parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CreateConnectivityTestRequest parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CreateConnectivityTestRequest parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CreateConnectivityTestRequest parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CreateConnectivityTestRequest parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CreateConnectivityTestRequest parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CreateConnectivityTestRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CreateConnectivityTestRequest
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CreateConnectivityTestRequest> parser()
Returns
TypeDescription
Parser<CreateConnectivityTestRequest>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CreateConnectivityTestRequest getDefaultInstanceForType()
Returns
TypeDescription
CreateConnectivityTestRequest

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.

getParserForType()

public Parser<CreateConnectivityTestRequest> getParserForType()
Returns
TypeDescription
Parser<CreateConnectivityTestRequest>
Overrides

getResource()

public ConnectivityTest getResource()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
ConnectivityTest

The resource.

getResourceOrBuilder()

public ConnectivityTestOrBuilder getResourceOrBuilder()

Required. A ConnectivityTest resource

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

Returns
TypeDescription
ConnectivityTestOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.v1.ConnectivityTest resource = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the resource field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CreateConnectivityTestRequest.Builder newBuilderForType()
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CreateConnectivityTestRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CreateConnectivityTestRequest.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CreateConnectivityTestRequest.Builder toBuilder()
Returns
TypeDescription
CreateConnectivityTestRequest.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException