public static final class StyleGuideContents.Builder extends GeneratedMessage.Builder<StyleGuideContents.Builder> implements StyleGuideContentsOrBuilderThe style guide contents.
Protobuf type google.cloud.apihub.v1.StyleGuideContents
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > StyleGuideContents.BuilderImplements
StyleGuideContentsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public StyleGuideContents build()| Returns | |
|---|---|
| Type | Description |
StyleGuideContents |
|
buildPartial()
public StyleGuideContents buildPartial()| Returns | |
|---|---|
| Type | Description |
StyleGuideContents |
|
clear()
public StyleGuideContents.Builder clear()| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
|
clearContents()
public StyleGuideContents.Builder clearContents()Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
clearMimeType()
public StyleGuideContents.Builder clearMimeType()Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
getContents()
public ByteString getContents()Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The contents. |
getDefaultInstanceForType()
public StyleGuideContents getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
StyleGuideContents |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMimeType()
public String getMimeType()Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The mimeType. |
getMimeTypeBytes()
public ByteString getMimeTypeBytes()Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for mimeType. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(StyleGuideContents other)
public StyleGuideContents.Builder mergeFrom(StyleGuideContents other)| Parameter | |
|---|---|
| Name | Description |
other |
StyleGuideContents |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public StyleGuideContents.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public StyleGuideContents.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
|
setContents(ByteString value)
public StyleGuideContents.Builder setContents(ByteString value)Required. The contents of the style guide.
bytes contents = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe contents to set. |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
setMimeType(String value)
public StyleGuideContents.Builder setMimeType(String value)Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |
setMimeTypeBytes(ByteString value)
public StyleGuideContents.Builder setMimeTypeBytes(ByteString value)Required. The mime type of the content.
string mime_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for mimeType to set. |
| Returns | |
|---|---|
| Type | Description |
StyleGuideContents.Builder |
This builder for chaining. |