Class Share (0.3.0)

public final class Share extends GeneratedMessage implements ShareOrBuilder

A catalog share between spaces.

Protobuf type google.cloud.designcenter.v1.Share

Implements

ShareOrBuilder

Static Fields

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DESTINATION_SPACE_FIELD_NUMBER

public static final int DESTINATION_SPACE_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
Type Description
int

STATE_FIELD_NUMBER

public static final int STATE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Share getDefaultInstance()
Returns
Type Description
Share

getDescriptor()

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

newBuilder()

public static Share.Builder newBuilder()
Returns
Type Description
Share.Builder

newBuilder(Share prototype)

public static Share.Builder newBuilder(Share prototype)
Parameter
Name Description
prototype Share
Returns
Type Description
Share.Builder

parseDelimitedFrom(InputStream input)

public static Share parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Share parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Share parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Share parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Share parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Share parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Share parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Share parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Share parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Share parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Share parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Share parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Share
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Share> parser()
Returns
Type Description
Parser<Share>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

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

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.

getParserForType()

public Parser<Share> getParserForType()
Returns
Type Description
Parser<Share>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Share.Builder newBuilderForType()
Returns
Type Description
Share.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Share.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Share.Builder
Overrides

toBuilder()

public Share.Builder toBuilder()
Returns
Type Description
Share.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException