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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public RuntimeProjectAttachment.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public RuntimeProjectAttachment build()
buildPartial()
public RuntimeProjectAttachment buildPartial()
clear()
public RuntimeProjectAttachment.Builder clear()
Overrides
clearCreateTime()
public RuntimeProjectAttachment.Builder clearCreateTime()
Output only. Create time.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
clearField(Descriptors.FieldDescriptor field)
public RuntimeProjectAttachment.Builder clearField(Descriptors.FieldDescriptor field)
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];
clearOneof(Descriptors.OneofDescriptor oneof)
public RuntimeProjectAttachment.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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) = { ... }
clone()
public RuntimeProjectAttachment.Builder clone()
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];
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. Create time.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public RuntimeProjectAttachment getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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()
Overrides
isInitialized()
public final boolean isInitialized()
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];
mergeFrom(RuntimeProjectAttachment other)
public RuntimeProjectAttachment.Builder mergeFrom(RuntimeProjectAttachment other)
public RuntimeProjectAttachment.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public RuntimeProjectAttachment.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final RuntimeProjectAttachment.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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];
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public RuntimeProjectAttachment.Builder setField(Descriptors.FieldDescriptor field, Object value)
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.
|
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.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public RuntimeProjectAttachment.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
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.
|
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.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final RuntimeProjectAttachment.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides