public static final class Lease.Builder extends GeneratedMessageV3.Builder<Lease.Builder> implements LeaseOrBuilder
The lease message.
Protobuf type google.cloud.visionai.v1.Lease
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Lease.BuilderImplements
LeaseOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Lease.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Lease.Builder |
build()
public Lease build()
Returns | |
---|---|
Type | Description |
Lease |
buildPartial()
public Lease buildPartial()
Returns | |
---|---|
Type | Description |
Lease |
clear()
public Lease.Builder clear()
Returns | |
---|---|
Type | Description |
Lease.Builder |
clearExpireTime()
public Lease.Builder clearExpireTime()
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Returns | |
---|---|
Type | Description |
Lease.Builder |
clearField(Descriptors.FieldDescriptor field)
public Lease.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Lease.Builder |
clearId()
public Lease.Builder clearId()
The lease id.
string id = 1;
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
clearLeaseType()
public Lease.Builder clearLeaseType()
The lease type.
.google.cloud.visionai.v1.LeaseType lease_type = 5;
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Lease.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Lease.Builder |
clearOwner()
public Lease.Builder clearOwner()
The owner name.
string owner = 3;
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
clearSeries()
public Lease.Builder clearSeries()
The series name.
string series = 2;
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
clone()
public Lease.Builder clone()
Returns | |
---|---|
Type | Description |
Lease.Builder |
getDefaultInstanceForType()
public Lease getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Lease |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getExpireTime()
public Timestamp getExpireTime()
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Returns | |
---|---|
Type | Description |
Timestamp |
The expireTime. |
getExpireTimeBuilder()
public Timestamp.Builder getExpireTimeBuilder()
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Returns | |
---|---|
Type | Description |
Builder |
getExpireTimeOrBuilder()
public TimestampOrBuilder getExpireTimeOrBuilder()
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Returns | |
---|---|
Type | Description |
TimestampOrBuilder |
getId()
public String getId()
The lease id.
string id = 1;
Returns | |
---|---|
Type | Description |
String |
The id. |
getIdBytes()
public ByteString getIdBytes()
The lease id.
string id = 1;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for id. |
getLeaseType()
public LeaseType getLeaseType()
The lease type.
.google.cloud.visionai.v1.LeaseType lease_type = 5;
Returns | |
---|---|
Type | Description |
LeaseType |
The leaseType. |
getLeaseTypeValue()
public int getLeaseTypeValue()
The lease type.
.google.cloud.visionai.v1.LeaseType lease_type = 5;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for leaseType. |
getOwner()
public String getOwner()
The owner name.
string owner = 3;
Returns | |
---|---|
Type | Description |
String |
The owner. |
getOwnerBytes()
public ByteString getOwnerBytes()
The owner name.
string owner = 3;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for owner. |
getSeries()
public String getSeries()
The series name.
string series = 2;
Returns | |
---|---|
Type | Description |
String |
The series. |
getSeriesBytes()
public ByteString getSeriesBytes()
The series name.
string series = 2;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for series. |
hasExpireTime()
public boolean hasExpireTime()
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Returns | |
---|---|
Type | Description |
boolean |
Whether the expireTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeExpireTime(Timestamp value)
public Lease.Builder mergeExpireTime(Timestamp value)
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Lease.Builder |
mergeFrom(Lease other)
public Lease.Builder mergeFrom(Lease other)
Parameter | |
---|---|
Name | Description |
other |
Lease |
Returns | |
---|---|
Type | Description |
Lease.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Lease.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Lease.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Lease.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Lease.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Lease.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Lease.Builder |
setExpireTime(Timestamp value)
public Lease.Builder setExpireTime(Timestamp value)
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Parameter | |
---|---|
Name | Description |
value |
Timestamp |
Returns | |
---|---|
Type | Description |
Lease.Builder |
setExpireTime(Timestamp.Builder builderForValue)
public Lease.Builder setExpireTime(Timestamp.Builder builderForValue)
The lease expire time.
.google.protobuf.Timestamp expire_time = 4;
Parameter | |
---|---|
Name | Description |
builderForValue |
Builder |
Returns | |
---|---|
Type | Description |
Lease.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Lease.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Lease.Builder |
setId(String value)
public Lease.Builder setId(String value)
The lease id.
string id = 1;
Parameter | |
---|---|
Name | Description |
value |
String The id to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setIdBytes(ByteString value)
public Lease.Builder setIdBytes(ByteString value)
The lease id.
string id = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for id to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setLeaseType(LeaseType value)
public Lease.Builder setLeaseType(LeaseType value)
The lease type.
.google.cloud.visionai.v1.LeaseType lease_type = 5;
Parameter | |
---|---|
Name | Description |
value |
LeaseType The leaseType to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setLeaseTypeValue(int value)
public Lease.Builder setLeaseTypeValue(int value)
The lease type.
.google.cloud.visionai.v1.LeaseType lease_type = 5;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for leaseType to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setOwner(String value)
public Lease.Builder setOwner(String value)
The owner name.
string owner = 3;
Parameter | |
---|---|
Name | Description |
value |
String The owner to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setOwnerBytes(ByteString value)
public Lease.Builder setOwnerBytes(ByteString value)
The owner name.
string owner = 3;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for owner to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Lease.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Lease.Builder |
setSeries(String value)
public Lease.Builder setSeries(String value)
The series name.
string series = 2;
Parameter | |
---|---|
Name | Description |
value |
String The series to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setSeriesBytes(ByteString value)
public Lease.Builder setSeriesBytes(ByteString value)
The series name.
string series = 2;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for series to set. |
Returns | |
---|---|
Type | Description |
Lease.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Lease.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Lease.Builder |