Class StyleGuideContents.Builder (0.36.0)

public static final class StyleGuideContents.Builder extends GeneratedMessage.Builder<StyleGuideContents.Builder> implements StyleGuideContentsOrBuilder

The style guide contents.

Protobuf type google.cloud.apihub.v1.StyleGuideContents

Static 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
Overrides

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
Overrides

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

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

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 ByteString

The 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 String

The 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 ByteString

The bytes for mimeType to set.

Returns
Type Description
StyleGuideContents.Builder

This builder for chaining.