Class CreateRuntimeProjectAttachmentRequest.Builder (0.6.0)

public static final class CreateRuntimeProjectAttachmentRequest.Builder extends GeneratedMessageV3.Builder<CreateRuntimeProjectAttachmentRequest.Builder> implements CreateRuntimeProjectAttachmentRequestOrBuilder

The CreateRuntimeProjectAttachment method's request.

Protobuf type google.cloud.apihub.v1.CreateRuntimeProjectAttachmentRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateRuntimeProjectAttachmentRequest build()
Returns
Type Description
CreateRuntimeProjectAttachmentRequest

buildPartial()

public CreateRuntimeProjectAttachmentRequest buildPartial()
Returns
Type Description
CreateRuntimeProjectAttachmentRequest

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateRuntimeProjectAttachmentRequest.Builder clearParent()

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

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

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

This builder for chaining.

clearRuntimeProjectAttachment()

public CreateRuntimeProjectAttachmentRequest.Builder clearRuntimeProjectAttachment()

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

clearRuntimeProjectAttachmentId()

public CreateRuntimeProjectAttachmentRequest.Builder clearRuntimeProjectAttachmentId()

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

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

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateRuntimeProjectAttachmentRequest getDefaultInstanceForType()
Returns
Type Description
CreateRuntimeProjectAttachmentRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

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 for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

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

Returns
Type Description
ByteString

The bytes for parent.

getRuntimeProjectAttachment()

public RuntimeProjectAttachment getRuntimeProjectAttachment()

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuntimeProjectAttachment

The runtimeProjectAttachment.

getRuntimeProjectAttachmentBuilder()

public RuntimeProjectAttachment.Builder getRuntimeProjectAttachmentBuilder()

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuntimeProjectAttachment.Builder

getRuntimeProjectAttachmentId()

public String getRuntimeProjectAttachmentId()

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

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

Returns
Type Description
String

The runtimeProjectAttachmentId.

getRuntimeProjectAttachmentIdBytes()

public ByteString getRuntimeProjectAttachmentIdBytes()

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

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

Returns
Type Description
ByteString

The bytes for runtimeProjectAttachmentId.

getRuntimeProjectAttachmentOrBuilder()

public RuntimeProjectAttachmentOrBuilder getRuntimeProjectAttachmentOrBuilder()

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RuntimeProjectAttachmentOrBuilder

hasRuntimeProjectAttachment()

public boolean hasRuntimeProjectAttachment()

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the runtimeProjectAttachment field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateRuntimeProjectAttachmentRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeRuntimeProjectAttachment(RuntimeProjectAttachment value)

public CreateRuntimeProjectAttachmentRequest.Builder mergeRuntimeProjectAttachment(RuntimeProjectAttachment value)

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RuntimeProjectAttachment
Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateRuntimeProjectAttachmentRequest.Builder setParent(String value)

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

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

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateRuntimeProjectAttachmentRequest.Builder setParentBytes(ByteString value)

Required. The parent resource for the Runtime Project Attachment. Format: projects/{project}/locations/{location}

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

This builder for chaining.

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

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

setRuntimeProjectAttachment(RuntimeProjectAttachment value)

public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachment(RuntimeProjectAttachment value)

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RuntimeProjectAttachment
Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

setRuntimeProjectAttachment(RuntimeProjectAttachment.Builder builderForValue)

public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachment(RuntimeProjectAttachment.Builder builderForValue)

Required. The Runtime Project Attachment to create.

.google.cloud.apihub.v1.RuntimeProjectAttachment runtime_project_attachment = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RuntimeProjectAttachment.Builder
Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

setRuntimeProjectAttachmentId(String value)

public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachmentId(String value)

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

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

Parameter
Name Description
value String

The runtimeProjectAttachmentId to set.

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

This builder for chaining.

setRuntimeProjectAttachmentIdBytes(ByteString value)

public CreateRuntimeProjectAttachmentRequest.Builder setRuntimeProjectAttachmentIdBytes(ByteString value)

Required. The ID to use for the Runtime Project Attachment, which will become the final component of the Runtime Project Attachment's name. The ID must be the same as the project ID of the Google cloud project specified in the runtime_project_attachment.runtime_project field.

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

Parameter
Name Description
value ByteString

The bytes for runtimeProjectAttachmentId to set.

Returns
Type Description
CreateRuntimeProjectAttachmentRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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