Class CreateSiteRequest.Builder (0.8.0)

public static final class CreateSiteRequest.Builder extends GeneratedMessageV3.Builder<CreateSiteRequest.Builder> implements CreateSiteRequestOrBuilder

A request to create a site.

Protobuf type google.cloud.gdchardwaremanagement.v1alpha.CreateSiteRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CreateSiteRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSiteRequest.Builder
Overrides

build()

public CreateSiteRequest build()
Returns
Type Description
CreateSiteRequest

buildPartial()

public CreateSiteRequest buildPartial()
Returns
Type Description
CreateSiteRequest

clear()

public CreateSiteRequest.Builder clear()
Returns
Type Description
CreateSiteRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CreateSiteRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CreateSiteRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CreateSiteRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CreateSiteRequest.Builder
Overrides

clearParent()

public CreateSiteRequest.Builder clearParent()

Required. The project and location to create the site in. Format: projects/{project}/locations/{location}

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

clearRequestId()

public CreateSiteRequest.Builder clearRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

clearSite()

public CreateSiteRequest.Builder clearSite()

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateSiteRequest.Builder

clearSiteId()

public CreateSiteRequest.Builder clearSiteId()

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

clone()

public CreateSiteRequest.Builder clone()
Returns
Type Description
CreateSiteRequest.Builder
Overrides

getDefaultInstanceForType()

public CreateSiteRequest getDefaultInstanceForType()
Returns
Type Description
CreateSiteRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getParent()

public String getParent()

Required. The project and location to create the site in. 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 project and location to create the site in. 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.

getRequestId()

public String getRequestId()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for requestId.

getSite()

public Site getSite()

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Site

The site.

getSiteBuilder()

public Site.Builder getSiteBuilder()

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Site.Builder

getSiteId()

public String getSiteId()

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The siteId.

getSiteIdBytes()

public ByteString getSiteIdBytes()

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for siteId.

getSiteOrBuilder()

public SiteOrBuilder getSiteOrBuilder()

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SiteOrBuilder

hasSite()

public boolean hasSite()

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the site field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CreateSiteRequest other)

public CreateSiteRequest.Builder mergeFrom(CreateSiteRequest other)
Parameter
Name Description
other CreateSiteRequest
Returns
Type Description
CreateSiteRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CreateSiteRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CreateSiteRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CreateSiteRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CreateSiteRequest.Builder
Overrides

mergeSite(Site value)

public CreateSiteRequest.Builder mergeSite(Site value)

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Site
Returns
Type Description
CreateSiteRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CreateSiteRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSiteRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public CreateSiteRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CreateSiteRequest.Builder
Overrides

setParent(String value)

public CreateSiteRequest.Builder setParent(String value)

Required. The project and location to create the site in. 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
CreateSiteRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateSiteRequest.Builder setParentBytes(ByteString value)

Required. The project and location to create the site in. 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
CreateSiteRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public CreateSiteRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CreateSiteRequest.Builder
Overrides

setRequestId(String value)

public CreateSiteRequest.Builder setRequestId(String value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateSiteRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional unique identifier for this request. See AIP-155.

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

setSite(Site value)

public CreateSiteRequest.Builder setSite(Site value)

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Site
Returns
Type Description
CreateSiteRequest.Builder

setSite(Site.Builder builderForValue)

public CreateSiteRequest.Builder setSite(Site.Builder builderForValue)

Required. The site to create.

.google.cloud.gdchardwaremanagement.v1alpha.Site site = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Site.Builder
Returns
Type Description
CreateSiteRequest.Builder

setSiteId(String value)

public CreateSiteRequest.Builder setSiteId(String value)

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The siteId to set.

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

setSiteIdBytes(ByteString value)

public CreateSiteRequest.Builder setSiteIdBytes(ByteString value)

Optional. ID used to uniquely identify the Site within its parent scope. This field should contain at most 63 characters and must start with lowercase characters. Only lowercase characters, numbers and - are accepted. The - character cannot be the first or the last one. A system generated ID will be used if the field is not set.

The site.name field in the request will be ignored.

string site_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for siteId to set.

Returns
Type Description
CreateSiteRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CreateSiteRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CreateSiteRequest.Builder
Overrides