public static final class Share.Builder extends GeneratedMessage.Builder<Share.Builder> implements ShareOrBuilderA catalog share between spaces.
Protobuf type google.cloud.designcenter.v1.Share
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Share.BuilderImplements
ShareOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Share build()| Returns | |
|---|---|
| Type | Description |
Share |
|
buildPartial()
public Share buildPartial()| Returns | |
|---|---|
| Type | Description |
Share |
|
clear()
public Share.Builder clear()| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
clearCreateTime()
public Share.Builder clearCreateTime()Output only. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
clearDestinationSpace()
public Share.Builder clearDestinationSpace() Required. The space resource path to which the catalog is shared.
Format is projects/$project/locations/$location/spaces/$space
string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
clearName()
public Share.Builder clearName() Identifier. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
clearState()
public Share.Builder clearState()Output only. The state of the share.
.google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
getCreateTime()
public Timestamp getCreateTime()Output only. The share creation timestamp.
.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. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public Share getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Share |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationSpace()
public String getDestinationSpace() Required. The space resource path to which the catalog is shared.
Format is projects/$project/locations/$location/spaces/$space
string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The destinationSpace. |
getDestinationSpaceBytes()
public ByteString getDestinationSpaceBytes() Required. The space resource path to which the catalog is shared.
Format is projects/$project/locations/$location/spaces/$space
string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for destinationSpace. |
getName()
public String getName() Identifier. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Identifier. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getState()
public Share.State getState()Output only. The state of the share.
.google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Share.State |
The state. |
getStateValue()
public int getStateValue()Output only. The state of the share.
.google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
hasCreateTime()
public boolean hasCreateTime()Output only. The share creation timestamp.
.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 |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public Share.Builder mergeCreateTime(Timestamp value)Output only. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
mergeFrom(Share other)
public Share.Builder mergeFrom(Share other)| Parameter | |
|---|---|
| Name | Description |
other |
Share |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Share.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Share.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
setCreateTime(Timestamp value)
public Share.Builder setCreateTime(Timestamp value)Output only. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public Share.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The share creation timestamp.
.google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
|
setDestinationSpace(String value)
public Share.Builder setDestinationSpace(String value) Required. The space resource path to which the catalog is shared.
Format is projects/$project/locations/$location/spaces/$space
string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe destinationSpace to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
setDestinationSpaceBytes(ByteString value)
public Share.Builder setDestinationSpaceBytes(ByteString value) Required. The space resource path to which the catalog is shared.
Format is projects/$project/locations/$location/spaces/$space
string destination_space = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for destinationSpace to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
setName(String value)
public Share.Builder setName(String value) Identifier. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public Share.Builder setNameBytes(ByteString value) Identifier. The share name in the following format:
projects/$project/locations/$location/spaces/$space/catalogs/$catalog/shares/$share
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
setState(Share.State value)
public Share.Builder setState(Share.State value)Output only. The state of the share.
.google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Share.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |
setStateValue(int value)
public Share.Builder setStateValue(int value)Output only. The state of the share.
.google.cloud.designcenter.v1.Share.State state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
Share.Builder |
This builder for chaining. |