public static final class CreateDependencyRequest.Builder extends GeneratedMessageV3.Builder<CreateDependencyRequest.Builder> implements CreateDependencyRequestOrBuilder
The CreateDependency method's request.
Protobuf type google.cloud.apihub.v1.CreateDependencyRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateDependencyRequest.BuilderImplements
CreateDependencyRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateDependencyRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
build()
public CreateDependencyRequest build()
Returns | |
---|---|
Type | Description |
CreateDependencyRequest |
buildPartial()
public CreateDependencyRequest buildPartial()
Returns | |
---|---|
Type | Description |
CreateDependencyRequest |
clear()
public CreateDependencyRequest.Builder clear()
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
clearDependency()
public CreateDependencyRequest.Builder clearDependency()
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
clearDependencyId()
public CreateDependencyRequest.Builder clearDependencyId()
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if duplicate id is provided by the client.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are
a-z[0-9]-_
.
string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public CreateDependencyRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateDependencyRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
clearParent()
public CreateDependencyRequest.Builder clearParent()
Required. The parent resource for the dependency resource.
Format: projects/{project}/locations/{location}
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
This builder for chaining. |
clone()
public CreateDependencyRequest.Builder clone()
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
getDefaultInstanceForType()
public CreateDependencyRequest getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
CreateDependencyRequest |
getDependency()
public Dependency getDependency()
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Dependency |
The dependency. |
getDependencyBuilder()
public Dependency.Builder getDependencyBuilder()
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
Dependency.Builder |
getDependencyId()
public String getDependencyId()
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if duplicate id is provided by the client.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are
a-z[0-9]-_
.
string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The dependencyId. |
getDependencyIdBytes()
public ByteString getDependencyIdBytes()
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if duplicate id is provided by the client.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are
a-z[0-9]-_
.
string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for dependencyId. |
getDependencyOrBuilder()
public DependencyOrBuilder getDependencyOrBuilder()
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
DependencyOrBuilder |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getParent()
public String getParent()
Required. The parent resource for the dependency resource.
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 dependency resource.
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. |
hasDependency()
public boolean hasDependency()
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Returns | |
---|---|
Type | Description |
boolean |
Whether the dependency field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeDependency(Dependency value)
public CreateDependencyRequest.Builder mergeDependency(Dependency value)
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Dependency |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
mergeFrom(CreateDependencyRequest other)
public CreateDependencyRequest.Builder mergeFrom(CreateDependencyRequest other)
Parameter | |
---|---|
Name | Description |
other |
CreateDependencyRequest |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateDependencyRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public CreateDependencyRequest.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateDependencyRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
setDependency(Dependency value)
public CreateDependencyRequest.Builder setDependency(Dependency value)
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
value |
Dependency |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
setDependency(Dependency.Builder builderForValue)
public CreateDependencyRequest.Builder setDependency(Dependency.Builder builderForValue)
Required. The dependency resource to create.
.google.cloud.apihub.v1.Dependency dependency = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter | |
---|---|
Name | Description |
builderForValue |
Dependency.Builder |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
setDependencyId(String value)
public CreateDependencyRequest.Builder setDependencyId(String value)
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if duplicate id is provided by the client.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are
a-z[0-9]-_
.
string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The dependencyId to set. |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
This builder for chaining. |
setDependencyIdBytes(ByteString value)
public CreateDependencyRequest.Builder setDependencyIdBytes(ByteString value)
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional.
- If provided, the same will be used. The service will throw an error if duplicate id is provided by the client.
If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are
a-z[0-9]-_
.
string dependency_id = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for dependencyId to set. |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateDependencyRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
setParent(String value)
public CreateDependencyRequest.Builder setParent(String value)
Required. The parent resource for the dependency resource.
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 |
CreateDependencyRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public CreateDependencyRequest.Builder setParentBytes(ByteString value)
Required. The parent resource for the dependency resource.
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 |
CreateDependencyRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateDependencyRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateDependencyRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
CreateDependencyRequest.Builder |