Class RuntimeProjectAttachment.Builder (0.36.0)

public static final class RuntimeProjectAttachment.Builder extends GeneratedMessage.Builder<RuntimeProjectAttachment.Builder> implements RuntimeProjectAttachmentOrBuilder

Runtime project attachment represents an attachment from the runtime project to the host project. Api Hub looks for deployments in the attached runtime projects and creates corresponding resources in Api Hub for the discovered deployments.

Protobuf type google.cloud.apihub.v1.RuntimeProjectAttachment

Static Methods

getDescriptor()

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

Methods

build()

public RuntimeProjectAttachment build()
Returns
Type Description
RuntimeProjectAttachment

buildPartial()

public RuntimeProjectAttachment buildPartial()
Returns
Type Description
RuntimeProjectAttachment

clear()

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

clearCreateTime()

public RuntimeProjectAttachment.Builder clearCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
RuntimeProjectAttachment.Builder

clearName()

public RuntimeProjectAttachment.Builder clearName()

Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.

clearRuntimeProject()

public RuntimeProjectAttachment.Builder clearRuntimeProject()

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.

getCreateTime()

public Timestamp getCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public RuntimeProjectAttachment getDefaultInstanceForType()
Returns
Type Description
RuntimeProjectAttachment

getDescriptorForType()

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

getName()

public String getName()

Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public ByteString getNameBytes()

Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getRuntimeProject()

public String getRuntimeProject()

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The runtimeProject.

getRuntimeProjectBytes()

public ByteString getRuntimeProjectBytes()

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for runtimeProject.

hasCreateTime()

public boolean hasCreateTime()

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCreateTime(Timestamp value)

public RuntimeProjectAttachment.Builder mergeCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RuntimeProjectAttachment.Builder

mergeFrom(RuntimeProjectAttachment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCreateTime(Timestamp value)

public RuntimeProjectAttachment.Builder setCreateTime(Timestamp value)

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
RuntimeProjectAttachment.Builder

setCreateTime(Timestamp.Builder builderForValue)

public RuntimeProjectAttachment.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. Create time.

.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
RuntimeProjectAttachment.Builder

setName(String value)

public RuntimeProjectAttachment.Builder setName(String value)

Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.

setNameBytes(ByteString value)

public RuntimeProjectAttachment.Builder setNameBytes(ByteString value)

Identifier. The resource name of a runtime project attachment. Format: "projects/{project}/locations/{location}/runtimeProjectAttachments/{runtime_project_attachment}".

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.

setRuntimeProject(String value)

public RuntimeProjectAttachment.Builder setRuntimeProject(String value)

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The runtimeProject to set.

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.

setRuntimeProjectBytes(ByteString value)

public RuntimeProjectAttachment.Builder setRuntimeProjectBytes(ByteString value)

Required. Immutable. Google cloud project name in the format: "projects/abc" or "projects/123". As input, project name with either project id or number are accepted. As output, this field will contain project number.

string runtime_project = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for runtimeProject to set.

Returns
Type Description
RuntimeProjectAttachment.Builder

This builder for chaining.