public static final class ReportInstanceInfoRequest.Builder extends GeneratedMessage.Builder<ReportInstanceInfoRequest.Builder> implements ReportInstanceInfoRequestOrBuilderRequest for notebook instances to report information to Notebooks API.
Protobuf type google.cloud.notebooks.v1.ReportInstanceInfoRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > ReportInstanceInfoRequest.BuilderImplements
ReportInstanceInfoRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public ReportInstanceInfoRequest build()| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest |
|
buildPartial()
public ReportInstanceInfoRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest |
|
clear()
public ReportInstanceInfoRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
clearMetadata()
public ReportInstanceInfoRequest.Builder clearMetadata()| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
clearName()
public ReportInstanceInfoRequest.Builder clearName() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |
clearVmId()
public ReportInstanceInfoRequest.Builder clearVmId()Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |
containsMetadata(String key)
public boolean containsMetadata(String key)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public ReportInstanceInfoRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMetadata() (deprecated)
public Map<String,String> getMetadata()Use #getMetadataMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataCount()
public int getMetadataCount()The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Returns | |
|---|---|
| Type | Description |
int |
|
getMetadataMap()
public Map<String,String> getMetadataMap()The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getMetadataOrDefault(String key, String defaultValue)
public String getMetadataOrDefault(String key, String defaultValue)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMetadataOrThrow(String key)
public String getMetadataOrThrow(String key)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getMutableMetadata() (deprecated)
public Map<String,String> getMutableMetadata()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes() Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getVmId()
public String getVmId()Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The vmId. |
getVmIdBytes()
public ByteString getVmIdBytes()Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for vmId. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ReportInstanceInfoRequest other)
public ReportInstanceInfoRequest.Builder mergeFrom(ReportInstanceInfoRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ReportInstanceInfoRequest |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ReportInstanceInfoRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ReportInstanceInfoRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
putAllMetadata(Map<String,String> values)
public ReportInstanceInfoRequest.Builder putAllMetadata(Map<String,String> values)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
putMetadata(String key, String value)
public ReportInstanceInfoRequest.Builder putMetadata(String key, String value)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
removeMetadata(String key)
public ReportInstanceInfoRequest.Builder removeMetadata(String key)The metadata reported to Notebooks API. This will be merged to the instance metadata store
map<string, string> metadata = 3;
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
|
setName(String value)
public ReportInstanceInfoRequest.Builder setName(String value) Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public ReportInstanceInfoRequest.Builder setNameBytes(ByteString value) Required. Format:
projects/{project_id}/locations/{location}/instances/{instance_id}
string name = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |
setVmId(String value)
public ReportInstanceInfoRequest.Builder setVmId(String value)Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe vmId to set. |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |
setVmIdBytes(ByteString value)
public ReportInstanceInfoRequest.Builder setVmIdBytes(ByteString value)Required. The VM hardware token for authenticating the VM. https://cloud.google.com/compute/docs/instances/verifying-instance-identity
string vm_id = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for vmId to set. |
| Returns | |
|---|---|
| Type | Description |
ReportInstanceInfoRequest.Builder |
This builder for chaining. |