Class RuntimeProjectAttachment.Builder (0.1.0)

public static final class RuntimeProjectAttachment.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

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

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.

clearOneof(Descriptors.OneofDescriptor oneof)

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

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RuntimeProjectAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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

setField(Descriptors.FieldDescriptor field, Object value)

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

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.

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

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

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.

setUnknownFields(UnknownFieldSet unknownFields)

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